diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-24 12:24:53 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-24 12:24:53 +0200 |
commit | 1c774a608314f4915791c9d9e4ab5d9c5485813f (patch) | |
tree | 1cc2f2c71eb9710c4a9613c5ee8d0d8b6bf09e8c /scene/animation | |
parent | 4fa6edc888cfacd5346bf08afa14b5f5a9bd6d0c (diff) |
Fix unsafe murmur3 hash use for the default material keys, expose alpha hash transparency mode for default materials and Label3D and Sprite3D.
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/root_motion_view.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/animation/root_motion_view.cpp b/scene/animation/root_motion_view.cpp index e6b258df3e..3d8d451c70 100644 --- a/scene/animation/root_motion_view.cpp +++ b/scene/animation/root_motion_view.cpp @@ -80,7 +80,8 @@ bool RootMotionView::get_zero_y() const { void RootMotionView::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: { - immediate_material = StandardMaterial3D::get_material_for_2d(false, true, false, false, false); + immediate_material = StandardMaterial3D::get_material_for_2d(false, BaseMaterial3D::TRANSPARENCY_ALPHA, false); + first = true; } break; |