You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Hide StreamTexture flags, fixes #26640
This commit is contained in:
@@ -842,6 +842,12 @@ void StreamTexture::reload_from_file() {
|
||||
load(path);
|
||||
}
|
||||
|
||||
void StreamTexture::_validate_property(PropertyInfo &property) const {
|
||||
if (property.name == "flags") {
|
||||
property.usage = PROPERTY_USAGE_NOEDITOR;
|
||||
}
|
||||
}
|
||||
|
||||
void StreamTexture::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("load", "path"), &StreamTexture::load);
|
||||
|
||||
@@ -203,6 +203,7 @@ private:
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
void _validate_property(PropertyInfo &property) const;
|
||||
|
||||
public:
|
||||
typedef void (*TextureFormatRequestCallback)(const Ref<StreamTexture> &);
|
||||
|
||||
Reference in New Issue
Block a user