Hide StreamTexture flags, fixes #26640

This commit is contained in:
Juan Linietsky 2019-03-06 12:50:24 -03:00
parent 6eac688952
commit 3d34df0e79
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -203,6 +203,7 @@ private:
protected:
static void _bind_methods();
void _validate_property(PropertyInfo &property) const;
public:
typedef void (*TextureFormatRequestCallback)(const Ref<StreamTexture> &);