You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
-All types have editable script now in properties
-Changed clip to a property in Control which can be set by the user
This commit is contained in:
@@ -61,7 +61,6 @@ void TextureRegionEditor::_region_draw()
|
||||
mtx.elements[2]=-draw_ofs;
|
||||
mtx.scale_basis(Vector2(draw_zoom,draw_zoom));
|
||||
|
||||
VS::get_singleton()->canvas_item_set_clip(edit_draw->get_canvas_item(),true);
|
||||
VS::get_singleton()->canvas_item_add_set_transform(edit_draw->get_canvas_item(),mtx);
|
||||
edit_draw->draw_texture(base_tex,Point2());
|
||||
VS::get_singleton()->canvas_item_add_set_transform(edit_draw->get_canvas_item(),Matrix32());
|
||||
@@ -925,6 +924,8 @@ TextureRegionEditor::TextureRegionEditor(EditorNode* p_editor)
|
||||
draw_zoom=1.0;
|
||||
updating_scroll=false;
|
||||
|
||||
edit_draw->set_clip_contents(true);
|
||||
|
||||
}
|
||||
|
||||
void TextureRegionEditorPlugin::edit(Object *p_node)
|
||||
|
||||
Reference in New Issue
Block a user