You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Improve layered texture preview
This commit is contained in:
@@ -54,24 +54,28 @@ class TextureLayeredEditor : public Control {
|
||||
bool setting = false;
|
||||
|
||||
void _make_shaders();
|
||||
void _update_material();
|
||||
void _update_material(bool p_texture_changed);
|
||||
|
||||
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_gui();
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
virtual void gui_input(const Ref<InputEvent> &p_event) override;
|
||||
|
||||
public:
|
||||
void edit(Ref<TextureLayered> p_texture);
|
||||
|
||||
TextureLayeredEditor();
|
||||
~TextureLayeredEditor();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user