Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2018-10-09 15:36:15 +0300
committerJacques Lucke <mail@jlucke.com>2018-10-09 15:36:15 +0300
commit85944a2d7e73d1ed070b19e50bc6927b47070091 (patch)
tree73c976ef37777b5569045fdb1e96ecd467ac6320 /source/blender/editors/space_view3d/view3d_gizmo_empty.c
parent3e2422a9471b7fccdd1de57ed06f3a0b95f5bb0a (diff)
Image Empties: Usability improvements and fixes
- new "Align to View" option when loading a new image - automatically align to view when dropping an image into a viewport - larger default size for image empties - fix image empty gizmo in orthographic view - new "Align Objects to View" operator Reviewer: brecht Differential: https://developer.blender.org/D3778
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_empty.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_gizmo_empty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_empty.c b/source/blender/editors/space_view3d/view3d_gizmo_empty.c
index 2913ba245e7..8bbc9c8f553 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_empty.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_empty.c
@@ -31,6 +31,8 @@
#include "BKE_object.h"
#include "BKE_image.h"
+#include "DEG_depsgraph.h"
+
#include "DNA_object_types.h"
#include "DNA_lamp_types.h"
@@ -94,6 +96,7 @@ static void gizmo_empty_image_prop_matrix_set(
Object *ob = igzgroup->state.ob;
ob->empty_drawsize = matrix[0][0];
+ DEG_id_tag_update(ob, DEG_TAG_TRANSFORM);
float dims[2];
RNA_float_get_array(gz->ptr, "dimensions", dims);