summaryrefslogtreecommitdiffstats
path: root/editor/plugins/texture_3d_editor_plugin.h
diff options
context:
space:
mode:
authorBlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>2024-05-30 13:53:26 +0200
committerBlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>2024-08-16 18:20:55 +0200
commite0f30d30e2cf7cfba460756a788b4bcf5b9feb54 (patch)
treedcdcc6ffeea5669f6776230af3eba848c79d7a0e /editor/plugins/texture_3d_editor_plugin.h
parent96be44c0ec4bafcb08d78be1a584b751b424db9f (diff)
downloadredot-engine-e0f30d30e2cf7cfba460756a788b4bcf5b9feb54.tar.gz
Improve layered texture preview
Diffstat (limited to 'editor/plugins/texture_3d_editor_plugin.h')
-rw-r--r--editor/plugins/texture_3d_editor_plugin.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/plugins/texture_3d_editor_plugin.h b/editor/plugins/texture_3d_editor_plugin.h
index 7a33a97a8f..0712ff423a 100644
--- a/editor/plugins/texture_3d_editor_plugin.h
+++ b/editor/plugins/texture_3d_editor_plugin.h
@@ -52,23 +52,27 @@ class Texture3DEditor : public Control {
bool setting = false;
void _make_shaders();
- void _update_material();
void _layer_changed(double) {
if (!setting) {
- _update_material();
+ _update_material(false);
}
}
+
void _texture_changed();
void _texture_rect_update_area();
void _texture_rect_draw();
+ void _update_material(bool p_texture_changed);
+ void _update_gui();
+
protected:
void _notification(int p_what);
public:
void edit(Ref<Texture3D> p_texture);
+
Texture3DEditor();
~Texture3DEditor();
};