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:
authorClément Foucault <foucault.clem@gmail.com>2019-02-04 03:12:05 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-02-05 17:02:15 +0300
commitf3f2602c88d866db6052ed03bbec1c9da4183e57 (patch)
tree502f6da9f6a0dc479563005a4b39aa85c5d69e27 /source/blender/editors/include/ED_uvedit.h
parente1b5fe156db2871ae0eb32d0af3e1c5fb8a7507a (diff)
UVEdit: Add function variants based on ToolSettings
This is better than passing a scene pointer when we don't have one.
Diffstat (limited to 'source/blender/editors/include/ED_uvedit.h')
-rw-r--r--source/blender/editors/include/ED_uvedit.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_uvedit.h b/source/blender/editors/include/ED_uvedit.h
index a617715ad52..ab6294a0dff 100644
--- a/source/blender/editors/include/ED_uvedit.h
+++ b/source/blender/editors/include/ED_uvedit.h
@@ -36,6 +36,7 @@ struct Main;
struct Object;
struct Scene;
struct SpaceImage;
+struct ToolSettings;
struct View3D;
struct ViewLayer;
struct bNode;
@@ -62,6 +63,20 @@ void ED_object_assign_active_image(struct Main *bmain, struct Object *ob, int ma
bool ED_uvedit_test(struct Object *obedit);
/* visibility and selection */
+bool uvedit_face_visible_nolocal_ex(
+ const struct ToolSettings *ts, struct BMFace *efa);
+bool uvedit_face_visible_test_ex(
+ const struct ToolSettings *ts, struct Object *obedit, struct Image *ima, struct BMFace *efa);
+bool uvedit_face_select_test_ex(
+ const struct ToolSettings *ts, struct BMFace *efa,
+ const int cd_loop_uv_offset);
+bool uvedit_edge_select_test_ex(
+ const struct ToolSettings *ts, struct BMLoop *l,
+ const int cd_loop_uv_offset);
+bool uvedit_uv_select_test_ex(
+ const struct ToolSettings *ts, struct BMLoop *l,
+ const int cd_loop_uv_offset);
+
bool uvedit_face_visible_nolocal(
struct Scene *scene, struct BMFace *efa);
bool uvedit_face_visible_test(