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:
authorCampbell Barton <ideasman42@gmail.com>2017-08-25 08:13:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-25 08:13:11 +0300
commit3f4b3fdfba00952cfc7565f3d55738c042f609c1 (patch)
tree14a96fd369c50ee6da4af5cdd5e2ba2edd070722 /source/blender/windowmanager/manipulators
parent1b5a690c721e257f4d2b6b0df3ad87c011af121e (diff)
Manipulator: zero grab offset w/o target property
Some manipulators are used like on-screen buttons, in this case it doesn't make sense to keep track of their state, so zero the offset when its unused. Needed for lamp-target manipulator.
Diffstat (limited to 'source/blender/windowmanager/manipulators')
-rw-r--r--source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h b/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h
index 8682ec4e390..bf5c38b9e39 100644
--- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h
+++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h
@@ -75,7 +75,6 @@ struct wmManipulator *wm_manipulatorgroup_find_intersected_mainpulator(
void wm_manipulatorgroup_intersectable_manipulators_to_list(
const struct wmManipulatorGroup *mgroup, struct ListBase *listbase);
void wm_manipulatorgroup_ensure_initialized(struct wmManipulatorGroup *mgroup, const struct bContext *C);
-bool wm_manipulatorgroup_is_initialized(const wmManipulatorGroup *mgroup);
bool wm_manipulatorgroup_is_visible(const struct wmManipulatorGroup *mgroup, const struct bContext *C);
bool wm_manipulatorgroup_is_visible_in_drawstep(
const struct wmManipulatorGroup *mgroup, const eWM_ManipulatorMapDrawStep drawstep);
@@ -138,4 +137,4 @@ void wm_manipulatormap_select_array_shrink(struct wmManipulatorMap *mmap, int le
void wm_manipulatormap_select_array_push_back(struct wmManipulatorMap *mmap, wmManipulator *mpr);
void wm_manipulatormap_select_array_remove(struct wmManipulatorMap *mmap, wmManipulator *mpr);
-#endif \ No newline at end of file
+#endif