You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
There should be a way to force the redraw/refresh of the inspector when a property is changed (value is set). For example imagine working in a EditorInspectorPlugin that whenever an exported boolean is changed in a node the plugin should hide another exported property from the inspector! Right now the node must be unselected and reselected for the inspector to redraw!
I'm not saying it should be refreshed everytime as it could be bad for performance but there should be an option for plugin developers to force it! ;)
for example: _redraw_inspector();
Steps to reproduce:
node with this code:
tool
extends Node
class_name TestNode
export(bool) var use_curve : bool = true;
export(Curve) var growth_curve : Curve
export(int) var fixed_value : int
plugin for inspector with this code:
extends EditorInspectorPlugin
func can_handle(object):
if object is TestNode:
return true;
func parse_property(object, type, path, hint, hint_text, usage):
match path:
'growth_curve':
return !object.use_curve
'fixed_value':
return object.use_curve
The text was updated successfully, but these errors were encountered:
Godot version:
v3.1.alpha.calinou.d304228
OS/device including version:
Windows 10
Issue description:
There should be a way to force the redraw/refresh of the inspector when a property is changed (value is set). For example imagine working in a EditorInspectorPlugin that whenever an exported boolean is changed in a node the plugin should hide another exported property from the inspector! Right now the node must be unselected and reselected for the inspector to redraw!
I'm not saying it should be refreshed everytime as it could be bad for performance but there should be an option for plugin developers to force it! ;)
for example:
_redraw_inspector();
Steps to reproduce:
node with this code:
plugin for inspector with this code:
The text was updated successfully, but these errors were encountered: