Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
41394f54
Commit
41394f54
authored
6 years ago
by
mano-wii
Browse files
Options
Downloads
Patches
Plain Diff
mesh_snap_utilities_line: fix missing detail in last update.
I should've tested first.
parent
f3352059
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mesh_snap_utilities_line/__init__.py
+1
-1
1 addition, 1 deletion
mesh_snap_utilities_line/__init__.py
mesh_snap_utilities_line/drawing_utilities.py
+14
-0
14 additions, 0 deletions
mesh_snap_utilities_line/drawing_utilities.py
with
15 additions
and
1 deletion
mesh_snap_utilities_line/__init__.py
+
1
−
1
View file @
41394f54
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
bl_info
=
{
bl_info
=
{
"
name
"
:
"
Snap_Utilities_Line
"
,
"
name
"
:
"
Snap_Utilities_Line
"
,
"
author
"
:
"
Germano Cavalcante
"
,
"
author
"
:
"
Germano Cavalcante
"
,
"
version
"
:
(
5
,
9
,
1
4
),
"
version
"
:
(
5
,
9
,
1
5
),
"
blender
"
:
(
2
,
80
,
0
),
"
blender
"
:
(
2
,
80
,
0
),
"
location
"
:
"
View3D > TOOLS > Line Tool
"
,
"
location
"
:
"
View3D > TOOLS > Line Tool
"
,
"
description
"
:
"
Extends Blender Snap controls
"
,
"
description
"
:
"
Extends Blender Snap controls
"
,
...
...
This diff is collapsed.
Click to expand it.
mesh_snap_utilities_line/drawing_utilities.py
+
14
−
0
View file @
41394f54
...
@@ -70,6 +70,20 @@ class SnapDrawn():
...
@@ -70,6 +70,20 @@ class SnapDrawn():
self
.
_batch_point
=
None
self
.
_batch_point
=
None
def
_gl_state_push
(
self
):
self
.
_is_point_size_enabled
=
bgl
.
glIsEnabled
(
bgl
.
GL_PROGRAM_POINT_SIZE
)
if
self
.
_is_point_size_enabled
:
bgl
.
glDisable
(
bgl
.
GL_PROGRAM_POINT_SIZE
)
# draw 3d point OpenGL in the 3D View
bgl
.
glEnable
(
bgl
.
GL_BLEND
)
def
_gl_state_restore
(
self
):
bgl
.
glDisable
(
bgl
.
GL_BLEND
)
if
self
.
_is_point_size_enabled
:
bgl
.
glEnable
(
bgl
.
GL_PROGRAM_POINT_SIZE
)
def
batch_line_strip_create
(
self
,
coords
):
def
batch_line_strip_create
(
self
,
coords
):
from
gpu.types
import
(
from
gpu.types
import
(
GPUVertBuf
,
GPUVertBuf
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment