Campbell Barton
2e2dc9b9e3
Refactor translation code out of blenfont
...
- Add blentranslation `BLT_*` module.
- moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`).
- moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-08-18 07:01:26 +10:00
Sergey Sharybin
dfc672f8bb
SCons: Fix for really nasty bug with polluting configuration environment
...
The issue was caused by the following construction:
def = env['SOMETHING']
defs.append('SOMETHING_MORE')
Since first assignment was actually referencing environment option it was totally
polluted hawing weird and wonderful side effects on all other areas of Blender.
2015-08-04 18:06:28 +02:00
Campbell Barton
0f690e2186
Fix T45625: Unpredictable grid fill
...
Detect when there are < 3 corners & automatically calculating the span isn't useful.
2015-08-03 17:44:50 +10:00
Campbell Barton
1dd4e933d8
Fix grid-fill offset option
...
Wasn't applied relative to the active vertex.
2015-08-03 16:14:22 +10:00
Campbell Barton
3c911ff8a5
Fix T45450: Loop-select fails to cycle between overlapping edges
2015-07-21 12:27:41 +10:00
Campbell Barton
595a491e63
Add tessellation data to DerivedMesh (LoopTri)
...
This stores loop indices into the loop array giving easier acess
to data such as vertex-colors and UV's,
removing the need to store an MFace duplicate of custom-data.
This doesn't yet move all internal code from MFace to LoopTri just yet.
Only applies to:
- opengl drawing
- sculpting (pbvh)
- vertex/weight paint
Thanks to @psy-fi for review, fixes and improvements to drawing!
2015-07-17 03:55:14 +10:00
Campbell Barton
52fa5b12e1
Cleanup: ws
2015-07-15 11:43:23 +10:00
Nikolaus Leopold
f2620c9df1
Minor English grammar typo fixes.
...
This fixes T45433.
Reviewers: Severin, kevindietrich
Reviewed By: kevindietrich
Projects: #bf_blender, #user_interface
Differential Revision: https://developer.blender.org/D1408
2015-07-15 03:33:10 +02:00
Campbell Barton
9f78aa4c36
Fix T45348: Collapse gives sel verts in face mode
2015-07-14 07:02:35 +10:00
Campbell Barton
e7b3803317
Allow spin/screw to run outside 3D view
...
This lets scripts call them
2015-07-14 00:55:04 +10:00
Bastien Montagne
f4f7348c41
Minor tweaking to Knife header text.
...
Confirm/cancel shall always be first, and also makes more sense to have
define cut/close cut/new cut together.
2015-07-12 21:52:59 +02:00
Bastien Montagne
c2bcf2dc05
Add new modalkeymap usage in helper header message to Knife tool.
2015-07-12 21:32:16 +02:00
Campbell Barton
114e7eaa09
Add WM_framebuffer_to_index_array
...
Convert buffer to index in one loop,
also minor cleanup to backbuf/selection functions.
- Use IMB_rectcpy instead of inline pixel copy.
- Redundant WM_framebuffer_to_index call.
2015-07-11 23:21:41 +10:00
Campbell Barton
30b7aafe33
Correct default enum values
...
Had assert creating cheat sheet
2015-07-07 23:10:08 +10:00
Howard Trickey
15c301f533
Change default for bevel to match previous behavior.
...
Have reconsidered and feel it best to try matching previous behavior
(doing "loop slides" where possible) as default. This will avoid the
need to change regression tests, among other things.
2015-07-05 13:31:26 -04:00
Howard Trickey
12aff8d783
Add 'loop slide' option to bevel. See T45260
...
Current behavior of bevel is to 'loop slide' along unbeveled edges
when possible, but this produces uneven bevel widths sometimes,
so this option lets user choose between having the loop slide effect
or having more even bevel widths. Trying it out with default being
'no loop slide', so different from current behavior. May reverse this
choice later, depending on user reactions.
2015-07-05 09:53:17 -04:00
Howard Trickey
68d72e2164
Add key toggle (V) to bevel tool to turn vertex-only on/off.
2015-07-04 10:14:47 -04:00
Campbell Barton
6de17c60bf
Select flush deleting edgeloop in edge mode too
2015-06-30 22:50:32 +10:00
Campbell Barton
c0ea3099c5
Correct error in recent refactor
...
Closed loops missed last line
2015-06-25 22:11:25 +10:00
Campbell Barton
ef57051e9c
Select flush was missing in delete edge-loop
2015-06-25 21:06:47 +10:00
Bastien Montagne
857c9e14f7
Cleanup: Get rid of some ugly magic numbers...
2015-06-21 22:37:39 +02:00
Bastien Montagne
43f6ed908f
Fix T45135: More cleanup of extreme max values in operator properties.
...
INT_/FLOAT_MAX are sometimes valid choices, but most of the time more
sensible values should be used here!
2015-06-21 21:56:35 +02:00
Bastien Montagne
6057548058
Fix/Cleanup possibility to type insane values in 'add' operators options.
...
Our 'hard limit' values was too often max_int/float here, mis-typing could
lead to crash (or infinite hanging) of Blender, see e.g.
http://blender.stackexchange.com/questions/32790/blender-forces-computer-to-reboot-after-mistyping-extreme-value-for-resolution-i
2015-06-21 16:06:44 +02:00
Campbell Barton
8be4d76204
Change defaults for planar-face tool
2015-06-21 12:52:37 +10:00
Campbell Barton
e3d6269ec4
BMesh: replace BLI_array -> BLI_stack
2015-06-21 09:46:12 +10:00
Campbell Barton
e019d8fb8c
Transform: UV islands were split by winding
...
This meant front/back faces from a projection would be seen as separate islands.
2015-06-20 19:28:51 +10:00
Campbell Barton
937ecaf77e
BMesh: Add edge-offset option: cap-endpoint
...
Creating triangles at endpoints is often not so good, disable by default.
2015-06-18 03:17:20 +10:00
Bastien Montagne
124b25cf9d
Usual minor i18n/UI messages fixes.
2015-06-15 21:38:36 +02:00
Campbell Barton
d8e994b35f
BMesh: edge-offset feature (Ctrl+Shift+R)
...
Ability to quickly add 2x edge loops on either side of selected loops.
2015-06-15 11:03:13 +10:00
Campbell Barton
5893a3445e
Use prepend instead of append (avoids list search)
2015-06-12 17:08:10 +10:00
Campbell Barton
41564a402e
BMesh: flatten faces operator
2015-06-11 21:54:06 +10:00
Campbell Barton
b8b57d2da9
BLI_listbase: match arg order with BLI_qsort_r
2015-06-11 21:54:06 +10:00
Bastien Montagne
ec3c2d3be9
Fix T45009: Bad 'tri area computation' code in knife tool.
...
Was causing wrong selection of 'outside' face.
2015-06-10 16:35:52 +02:00
Campbell Barton
bcfe38aa03
Fix T44964: Bisect tool /w nonuniform scale
2015-06-08 22:30:45 +10:00
Campbell Barton
60621940d0
Use threshold for selecting side-of-axis
2015-06-07 02:09:41 +10:00
Antony Riakiotakis
7173069cbe
Fix T44915 vertex color lost when adding new layer in edit mode.
...
Was copying new layer colors to old layer colors.
2015-06-01 19:06:46 +02:00
Campbell Barton
668f1f9554
Fix for leak in BM_uv_element_map_create
...
Also correct over alloc and redundant alloc.
2015-06-01 14:16:28 +10:00
Campbell Barton
af434fea71
BMesh: select linked /w delimiters & wire edges
...
Add support for using edge delimiters mixed with wire edges.
Code isn't so elegant but users will expect this.
2015-05-29 14:41:39 +10:00
Campbell Barton
4bf64e841c
Correct convex-hull for recent join-tri changes
2015-05-27 21:43:35 +10:00
Campbell Barton
d45c4af469
Cleanup: update comment
2015-05-27 00:00:31 +10:00
Campbell Barton
8715fd0925
BMesh: join tris, split angle limit in two
...
Use a separate limit for face-angle and shape comparisons.
There was no way to join non-rectangular, co-planer tries.
2015-05-26 14:27:38 +10:00
Campbell Barton
9ce20d3341
BMesh: join tris now delimits all UV/Color layers
...
Previously was only checking active layers
Also add delimit by edge seam
2015-05-26 13:42:59 +10:00
Campbell Barton
f9b6f5756c
Fix crash clearing skin data on non mesh
2015-05-25 00:08:43 +10:00
Campbell Barton
ed2cb8de2f
Fix for join faces ignoring angle limit
...
Angle limit for join-faces was more advice then actual limit.
Now joining entire selection, gives assurance that no faces above the limit will be merged.
The purpose of this was to allow users to isolate 2 faces and always join them.
Instead, support this by bypassing limit only when its not set and 2 faces are selected.
2015-05-22 18:14:03 +10:00
Bastien Montagne
6b40a4bcb1
Fix T44794: Blend From Shape tool X Icon UI Bug?
...
Note: maybe we could even make `RNA_property_is_unlink()` always return false
for enum properties? But well, guess being explicit here does not hurt...
2015-05-21 12:00:31 +02:00
Campbell Barton
2c000cc9fc
Fix mesh mirror failing on isolated verts
2015-05-21 13:01:44 +10:00
Campbell Barton
df0a1fa3c5
Fix T44766: Connect fails /w selected ngon edges
2015-05-19 23:51:57 +10:00
Campbell Barton
30b45d5591
BMesh: don't check winding for uv-vert-map
...
Made link-select separate front/back with projected UV's
2015-05-17 23:06:41 +10:00
Campbell Barton
dddb4f655c
BMesh: link-select-pick now supports redo
...
Without this you can't change delimiter options without editing the keymap.
2015-05-16 20:53:35 +10:00
Campbell Barton
3aa4a0e787
BMesh: add UV delimit for select-linked, dissolve
2015-05-16 12:21:31 +10:00