Compile out editor-only logic within validate_property in games
This commit is contained in:
parent
d9cd011e2f
commit
8ba4656ea3
69 changed files with 274 additions and 119 deletions
|
|
@ -293,9 +293,6 @@ void CompressedTexture2D::reload_from_file() {
|
|||
load(path);
|
||||
}
|
||||
|
||||
void CompressedTexture2D::_validate_property(PropertyInfo &p_property) const {
|
||||
}
|
||||
|
||||
Ref<Image> CompressedTexture2D::load_image_from_file(Ref<FileAccess> f, int p_size_limit) {
|
||||
uint32_t data_format = f->get_32();
|
||||
uint32_t w = f->get_16();
|
||||
|
|
@ -634,9 +631,6 @@ void CompressedTexture3D::reload_from_file() {
|
|||
load(path);
|
||||
}
|
||||
|
||||
void CompressedTexture3D::_validate_property(PropertyInfo &p_property) const {
|
||||
}
|
||||
|
||||
void CompressedTexture3D::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("load", "path"), &CompressedTexture3D::load);
|
||||
ClassDB::bind_method(D_METHOD("get_load_path"), &CompressedTexture3D::get_load_path);
|
||||
|
|
@ -826,9 +820,6 @@ void CompressedTextureLayered::reload_from_file() {
|
|||
load(path);
|
||||
}
|
||||
|
||||
void CompressedTextureLayered::_validate_property(PropertyInfo &p_property) const {
|
||||
}
|
||||
|
||||
void CompressedTextureLayered::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("load", "path"), &CompressedTextureLayered::load);
|
||||
ClassDB::bind_method(D_METHOD("get_load_path"), &CompressedTextureLayered::get_load_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue