Commit Graph

2261 Commits

Author SHA1 Message Date
Campbell Barton
f35e9f047a Merge branch 'master' into blender2.8 2018-09-19 12:14:36 +10:00
Campbell Barton
bb3ec3ebaf BLI_utildefines: rename pointer conversion macros
Terms get/set don't make much sense when casting values.

Name macros so the conversion is obvious,
use common prefix for easier completion.

- GET_INT_FROM_POINTER  -> POINTER_AS_INT
- SET_INT_IN_POINTER    -> POINTER_FROM_INT
- GET_UINT_FROM_POINTER -> POINTER_AS_UINT
- SET_UINT_IN_POINTER   -> POINTER_FROM_UINT
2018-09-19 12:12:21 +10:00
Campbell Barton
0ddf3e110e Cleanup: comment blocks 2018-09-02 18:51:31 +10:00
Campbell Barton
ae57383648 Cleanup: comment blocks 2018-09-02 18:28:27 +10:00
Campbell Barton
21105e1b1f Cleanup: use simple early exit for common case
Caused MSVC warning, may as well do simple check.
2018-08-30 01:19:44 +10:00
Andrew Hale
1e6a5eb087 Implement BMesh Operator string enumerators and docs generation.
Partial implementation of T56496 for review.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D3635
2018-08-27 16:15:54 +02:00
Campbell Barton
d2e70455cf Merge branch 'master' into blender2.8 2018-08-20 17:53:53 +10:00
Andrew Hale
f52e31a46d Fix BMesh edge_bisect, edge_percent being ignored
Also fix float/int/bool access methods
2018-08-20 13:38:10 +10:00
Campbell Barton
d648501e28 BMesh: define suptype for bevel normals.out
Not doing this broke doc building.
2018-08-14 22:26:19 +10:00
Howard Trickey
aac5458fa5 Fix bevel problem for vertex-only cube corners.
Was introduced by code from gsoc branch that does better job
on cube corners, but shouldn't have applied to vertex-only case.
2018-08-13 09:25:16 -04:00
Campbell Barton
eb7b450c0c Cleanup: style 2018-08-10 08:14:22 +10:00
Howard Trickey
1ee93dc670 Quiet warnings in bmesh_bevel.c. 2018-08-09 14:43:52 -04:00
Rohan Rathi
2b41b208c7 Merge branch 'soc-2018-bevel' into blender2.8 2018-08-09 19:52:07 +05:30
Campbell Barton
aa41c86636 Cleanup: trailing space 2018-08-08 20:45:43 +10:00
Rohan Rathi
c41ce58fde Fix indentation, spacing and added comments 2018-08-05 08:39:20 +05:30
Rohan Rathi
e5e9578881 Added comments to functionality in main bevel code 2018-08-04 23:20:53 +05:30
Rohan Rathi
cc30793a76 Added comments to seam and sharp len, removed unused var 2018-08-04 22:38:54 +05:30
Rohan Rathi
7db1db72bb Fixed hnmode not being passed with bevel tool 2018-08-04 22:32:28 +05:30
Rohan Rathi
997b35f57a Added comments on hn_mode, BMOps on bevel 2018-08-04 22:31:53 +05:30
Rohan Rathi
86f6c15809 Removed redundant comment in BMesh 2018-08-04 22:11:11 +05:30
Bastien Montagne
4edae3cc2d Merge branch 'master' into blender2.8 2018-08-04 13:43:10 +02:00
Bastien Montagne
a56ec3dfe3 Fix T56222: Bevel Modifier bug (uninitialized value). 2018-08-04 13:40:38 +02:00
Rohan Rathi
4e6bcd10e5 Merge branch 'blender2.8' into soc-2018-bevel 2018-07-21 19:29:15 +05:30
Rohan Rathi
b6b185691f Code cleanup and fixes 2018-07-19 19:27:45 +05:30
Rohan Rathi
43ac0f38d7 Fix weld incoherent normals with weld operation 2018-07-17 18:57:22 +05:30
Campbell Barton
5ebebcfbff WM: rename manipulator to gizmo internally 2018-07-14 23:49:00 +02:00
Rohan Rathi
10c1f3fbfe Fixed shading errors with normals and added proper weighting
to harden normals to make it consistent with wn modifier
2018-07-12 23:30:29 +05:30
Campbell Barton
f4d4047d80 Merge branch 'master' into blender2.8 2018-07-12 11:20:48 +02:00
Campbell Barton
d75b8e5f01 Cleanup: header guards 2018-07-12 11:19:22 +02:00
Rohan Rathi
13741792ab Fixed artifacts in bevel with high profile and segments 2018-07-09 21:55:08 +05:30
Rohan Rathi
b360c9d7f9 cleanup of extend edge data and fixed minor errors 2018-07-04 00:04:03 +05:30
Rohan Rathi
31e43d021f Merge branch 'blender2.8' into soc-2018-bevel 2018-07-02 23:31:19 +05:30
Rohan Rathi
368a64fe04 Refactored bevel normal editing functionality. 2018-07-02 22:55:33 +05:30
Rohan Rathi
74ace41160 Minor cleanup and fixed normal updating erasing entire mesh 2018-07-02 21:47:15 +05:30
Rohan Rathi
0c25881c39 Cleanup of fix_normal_shading
Fixed the edge crease that was present and also made significant
performance improvements.
2018-07-29 19:52:23 +05:30
Campbell Barton
ea6fef9385 Merge branch 'master' into blender2.8 2018-06-30 10:32:55 +02:00
Campbell Barton
b26e9f0000 Cleanup: rename bmesh_queries -> bmesh_query
Other files with the same purpose already used 'query'.
2018-06-30 10:32:21 +02:00
Bastien Montagne
5ba87cf22e Cleanup: remove another bunch of DM usages, includes etc. 2018-06-29 14:57:02 +02:00
Campbell Barton
9bd0c63382 Merge branch 'master' into blender2.8 2018-06-29 08:05:38 +02:00
Campbell Barton
af36dd4664 Cleanup: trailing newlines 2018-06-29 08:02:49 +02:00
Rohan Rathi
3504b27c50 Patch to fix shading continuity.
Added it as extension to harden. Tried out different methods to fix normals,
Though as with width and segments changes shape, orientation of new polys
a non-smooth method of fix was not possible. Current method aggregates
vertex normals into a smooth fan without affecting edge shading.
Still need to fix the crease at new vertex edges
2018-06-27 20:19:15 +05:30
Bastien Montagne
65128cde51 Cleanup: remove BKE's modifiers_bmesh.c, other DM removal/cleanup in BMesh code. 2018-06-27 10:59:52 +02:00
Rohan Rathi
e8a1b4d645 Change bitmap to GHash in bevel_harden_normals_mode 2018-06-25 13:47:46 +05:30
Rohan Rathi
1757b38179 Added UI for harden normals and normal control in bevel modifier 2018-06-23 01:46:42 +05:30
Rohan Rathi
0f66fe5732 Fix normal shading continuity for in-plane bevels 2018-06-22 23:22:44 +05:30
Rohan Rathi
c73a6b0d42 Merge branch 'blender2.8' into soc-2018-bevel 2018-06-20 22:29:44 +05:30
Rohan Rathi
dd752476b9 Added face strength in bevel modifier
The selected face strength (Weak/Medium/High) can be used by the WN Modifier
to determine influence of current face in
2018-06-19 19:27:08 +05:30
Sergey Sharybin
d5ec62a0c3 Multires: Remove unused function
It uses derived mesh, and relies on scene stored in modifier data.
So port is needed anyway.
2018-06-18 11:14:00 +02:00
Campbell Barton
43ce201125 Merge branch 'master' into blender2.8 2018-06-17 11:57:49 +02:00
Campbell Barton
2f1e34cfcc Cleanup: use clamp_* from BLI_math (replace macro) 2018-06-17 11:50:56 +02:00