-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the need to restart editor when modifying most editors/3d_gizmos
settings
#101920
base: master
Are you sure you want to change the base?
Conversation
create_material("decal_material", gizmo_color); | ||
|
||
create_handle_material("handles"); | ||
DecalGizmoPlugin::update_materials(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class qualifier is redundant as far as I can tell:
DecalGizmoPlugin::update_materials(); | |
update_materials(); |
Same in the other gizmo classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rider was upset because we're calling a virtual function within the constructor. Still don't want the qualifier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also change the GridMap gizmo code added by #101101 to make use of this new update_materials()
function.
So it looks like Gridmap handles this via notifications and doesnt have access to the update_materials() function from EditorNode3DGizmoPlugin godot/modules/gridmap/editor/grid_map_editor_plugin.cpp Lines 1255 to 1256 in f1c0b5b
Edit: just to clarify, the Gridmap setting does work with current PR, its just not visible in the image i included beyond the scene tree |
5ef1773
to
796153f
Compare
While you're correct that
|
796153f
to
aaf6c97
Compare
Much appreciated, the first two require no changes, so just the third. It's odd they are excluded from the build within my .vcxproj In either case I've updated |
3D Gizmos
settings godot-proposals#11622This PR improves the editor by not requiring a restart to change 3d gizmo colors/settings
I've tested each of the related gizmos and all appear to update without issue.
Notes for the future:
1. The following colors are unused currently:see #101920 (comment) and #101920 (comment)editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size
wasn't able to be changed in a similar way because it instantiates a Path3DGizmo with a specified disk size.