Hide StreamTexture flags, fixes #26640
This commit is contained in:
parent
6eac688952
commit
3d34df0e79
|
@ -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> &);
|
||||
|
|
Loading…
Reference in New Issue