Merge pull request #83145 from bitsawer/fix_basematerial3d_update

Fix BaseMaterial3D update with certain material settings
This commit is contained in:
Rémi Verschelde 2023-10-11 18:31:06 +02:00
commit 05d6183dee
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 3 additions and 0 deletions

View File

@ -3079,6 +3079,8 @@ BaseMaterial3D::BaseMaterial3D(bool p_orm) :
flags[FLAG_ALBEDO_TEXTURE_MSDF] = false;
flags[FLAG_USE_TEXTURE_REPEAT] = true;
current_key.invalid_key = 1;
_mark_initialized(callable_mp(this, &BaseMaterial3D::_queue_shader_change));
}

View File

@ -325,6 +325,7 @@ private:
uint64_t emission_op : get_num_bits(EMISSION_OP_MAX - 1);
uint64_t distance_fade : get_num_bits(DISTANCE_FADE_MAX - 1);
// booleans
uint64_t invalid_key : 1;
uint64_t deep_parallax : 1;
uint64_t grow : 1;
uint64_t proximity_fade : 1;