mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Make Animation::capture_included read-only
The `PROPERTY_USAGE_READ_ONLY` flag only makes the property read-only in the inspector, but the property also has the `PROPERTY_USAGE_NO_EDITOR` flag which means it won't show up in the inspector. So it does nothing, while still making it editable from scripting. To make it read-only for scripting too, this PR removes the setter from the `PropertyInfo`. And since the `set_capture_included` method is now unused, it was also removed.
This commit is contained in:
@@ -599,7 +599,7 @@
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="capture_included" type="bool" setter="_set_capture_included" getter="is_capture_included" default="false">
|
||||
<member name="capture_included" type="bool" setter="" getter="is_capture_included" default="false">
|
||||
Returns [code]true[/code] if the capture track is included. This is a cached readonly value for performance.
|
||||
</member>
|
||||
<member name="length" type="float" setter="set_length" getter="get_length" default="1.0">
|
||||
|
||||
Reference in New Issue
Block a user