Skip to content

Commit

Permalink
Merge pull request #83145 from bitsawer/fix_basematerial3d_update
Browse files Browse the repository at this point in the history
Fix BaseMaterial3D update with certain material settings
  • Loading branch information
akien-mga committed Oct 11, 2023
2 parents ae5be1f + 45f2ef4 commit 05d6183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/resources/material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
1 change: 1 addition & 0 deletions scene/resources/material.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ class BaseMaterial3D : public Material {
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;
Expand Down

0 comments on commit 05d6183

Please sign in to comment.