-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from AIGODLIKE/fix-operator-not-found
v1.2.5
- Loading branch information
Showing
10 changed files
with
90 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"""放置雕刻操作符 | ||
统一各版本操作符不同带来的bug | ||
""" | ||
import bpy | ||
|
||
is_3_6_up_version = bpy.app.version >= (3, 6, 0) | ||
is_4_1_up_version = bpy.app.version >= (4, 1, 0) | ||
|
||
|
||
# 反转可见面 | ||
def sculpt_invert_hide_face(): | ||
if is_4_1_up_version: | ||
bpy.ops.paint.visibility_invert() | ||
elif is_3_6_up_version: | ||
bpy.ops.sculpt.face_set_invert_visibility() | ||
else: | ||
bpy.ops.sculpt.face_set_change_visibility('EXEC_DEFAULT', True, mode='INVERT') | ||
|
||
|
||
def normal_brush_handle(): | ||
bpy.ops.sculpt.brush_stroke('INVOKE_DEFAULT', | ||
True, | ||
mode='NORMAL') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters