You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Improve layered texture preview
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user