Campbell Barton
165afb3ad0
Cleanup: pep8, unused vars, line length
2019-12-16 14:54:32 +11:00
Campbell Barton
c8c3e7d284
Cleanup: trailing space, remove tabs, pep8
2019-09-10 06:17:59 +10:00
Campbell Barton
d2e474d043
Cleanup: use trailing commas for multi-line arguments
2019-06-21 08:36:03 +10:00
Campbell Barton
fc37238b17
Cleanup: unused args/vars/imports in bl_operators
2019-05-09 12:42:05 +10:00
Campbell Barton
e49da07184
Cleanup: style
2019-04-10 00:06:13 +10:00
Sebastian Parborg
0403a2f785
Fix T53997: island_margin in bpy.ops.uv.smart_project seems to have no effect
...
Now island margin acts as a percentage instead of being the actual distance.
So the margin distance will always be the same regardless of the actual size of the geometry.
Reviewed By: Brecht
Differential Revision: http://developer.blender.org/D4514
2019-03-28 12:55:47 +01:00
Campbell Barton
e63642f9cd
Fix T60172: UV smart project fails for unselected active object
...
Support multi-object edit-mode too.
2019-03-14 10:53:09 +11:00
Campbell Barton
7894d6c6f1
Cleanup: line length
2019-01-30 09:06:44 +11:00
Brecht Van Lommel
a2e209f20a
Merge branch 'master' into blender2.8
2018-11-24 23:44:17 +01:00
Brecht Van Lommel
33750e8abb
Fix T58006: smart UV project island margin should not use length units.
...
This distance is in UV space, not world space.
2018-11-24 23:43:03 +01:00
Campbell Barton
05f2caa210
Merge branch 'master' into blender2.8
2018-10-25 12:26:08 +11:00
Campbell Barton
c9e36e5434
Cleanup: unused vars, correct bad (unused) logic
2018-10-25 12:24:38 +11:00
Brecht Van Lommel
6b433f4eb3
Merge branch 'master' into blender2.8
2018-09-19 18:20:50 +02:00
Brecht Van Lommel
a4f2ebc78d
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3700
2018-09-19 18:18:05 +02:00
Dalai Felinto
9c1150a295
Cleanup: uvcalc_smart_project.py 2/2
2018-09-05 15:36:31 -03:00
Dalai Felinto
9710056fb5
Cleanup: uvcalc_smart_project.py
...
Removing old commented out code. It includes progress bar and other bits
that were never implemented for this script since the 2.5 transition.
2018-09-05 15:27:40 -03:00
Dalai Felinto
67682f567b
Multi-Objects: UV_OT_smart_project
2018-09-05 15:23:42 -03:00
Bastien Montagne
a43ebc63fa
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/collision.c
2018-09-03 17:44:36 +02:00
Brecht Van Lommel
4da2acae3a
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3668
2018-09-03 16:55:01 +02:00
Campbell Barton
4b6fa4d897
PyAPI: update scripts for matrix multiply operator
...
Operators:
- add torus
- align objects
- bake physics
- make dupli faces
- smart project
Templates:
- 3D view ray cast
Other:
- Methods for bones/edit-bones
2018-08-12 15:22:58 +10:00
Campbell Barton
09aa799e53
PyAPI: Use annotations for RNA definitions
...
- Logical use of fields since they define type information.
- Avoids using ordered-dict metaclass.
Properties using regular assignments will print a warning and load,
however the order is undefined.
2018-07-11 22:18:09 +02:00
Campbell Barton
a61480c271
Merge branch 'master' into blender2.8
2018-06-26 22:56:39 +02:00
Campbell Barton
532c8ac583
Cleanup: pep8 function indentation
2018-06-26 19:58:56 +02:00
Campbell Barton
1c24c04e60
Remove workspace object mode, reverts changes w/ 2.8
...
This caused too many problems syncing object modes
with multiple objects/windows/workspaces, see: D3130 for details.
2018-04-05 18:21:14 +02:00
Campbell Barton
345c6298e9
Object Mode: move to workspace struct
...
- Read-only access can often use EvaluationContext.object_mode
- Write access to go to WorkSpace.object_mode.
- Some TODO's remain (marked as "TODO/OBMODE")
- Add-ons will need updating
(context.active_object.mode -> context.workspace.object_mode)
- There will be small/medium issues that still need resolving
this does work on a basic level though.
See D3037
2018-02-08 21:14:26 +11:00
Campbell Barton
be40389165
Merge branch 'master' into blender2.8
2018-01-03 23:44:47 +11:00
Campbell Barton
cbc7aa80d4
Fix T53678: Smart Project UV margin ignores units
2018-01-03 16:10:41 +11:00
Campbell Barton
9bdd12d884
Merge branch 'master' into blender2.8
2017-07-25 17:36:49 +10:00
Campbell Barton
7260a693e1
Cleanup: trailing space
2017-07-25 01:28:15 +10:00
Campbell Barton
bdbf4471a6
TexFace removal part 3
...
- MTexPoly structure & layer type.
- The 'Mesh.uv_textures' layers.
- DerivedMesh TexFace drawing.
- Scripts & UI.
2017-05-25 15:19:58 +10:00
Campbell Barton
7cb2974182
Cleanup: imports, indentation, long lines
2017-03-25 11:07:48 +11:00
Campbell Barton
9bdda427e6
PyAPI: remove bpy.utils.register_module()
...
In preparation for it being removed, see: T47811
2017-03-18 20:03:24 +11:00
Campbell Barton
4ee5ba41bb
Fix T48086: Smart UV Project fails w/ small faces
...
Epsilon for small faces was too large.
Also suppress exception when all faces area are below the epsilon.
2016-04-20 11:51:03 +10:00
Campbell Barton
df5532b502
UV Smart Project: restore 'Stretch to UV Bounds'
...
This option wasn't exposed since 2.4x.
D1622 by @candreacchio
2015-11-24 07:28:42 +11:00
Antony Riakiotakis
f1ddf99580
Fix T42859 smart UV unwrap does not support aspect correction.
...
Can be considered TODO but it's not bad to support either. Also added
RNA api to get aspect ratio of assigned UV image - returns aspect
corrected image dimensions so needs adjustments for uv editing.
2014-12-11 19:46:35 +01:00
Campbell Barton
b2b1d8e290
Cleanup: remove redundant 'object' parent class
2014-10-28 18:42:06 +01:00
Campbell Barton
dd5acaaa6c
Correct Python exceptions
...
T35358 by Codemanx
2014-08-07 00:44:55 +10:00
Campbell Barton
b8ea2e73d2
Smart UV Project: don't rotate islands which are almost square
2014-04-25 03:13:35 +10:00
Campbell Barton
0ebade55fc
Fix T37509: regression in smart-uv island orientation
2014-04-03 22:03:53 +11:00
Campbell Barton
22873eaeba
Fix T31598: smart UV failed for small faces
...
previous fixes only tweaked epsilon, but logic for skipping zero area
boxes was still wrong.
2014-03-18 01:34:14 +11:00
Campbell Barton
e781ea79b2
UV Unwrap: smart uv unwrap would fail still on some very small faces
2014-01-08 14:03:36 +11:00
Campbell Barton
2f6c748bb9
fix [ #36020 ] SmartUV Project is messy on a cube
...
was using very simple/stupid check to rotate us islands, replace with box_fit_2d() function.
missed docstring last commit.
2013-09-11 07:10:15 +00:00
Thomas Dinges
858ff6b696
Fix for [ #34898 ] Typo in error message of mathutils.Vector
...
* Also fixed some more cases of "more then" -> "more than".
2013-04-07 15:09:06 +00:00
Campbell Barton
0b9be70591
typo's and some style cleanup, also added asserts into BLI_vsnprintf and BLI_sprintfN when invalid args are given.
2012-11-28 06:43:04 +00:00
Campbell Barton
c2714a6a5b
fix [ #31598 ] Messed up Smart UVs
...
face areas were too close to zero. also copy the face normal to avoid recalculations on each use.
2012-11-26 11:53:34 +00:00
Campbell Barton
7c3db355b1
remove ifdef'd bevel code, current bevel works better then the previous code.
...
reduce strlen check in texttool_suggest_add()
use 'del list[:]' rather then 'list[:] = []' in python scripts which clear lists.
2012-11-14 09:45:15 +00:00
Campbell Barton
2a140e93c1
style cleanup
2012-07-04 21:41:05 +00:00
Bastien Montagne
63810ffcef
Style edit (mostly), use """ for docstrings (not ''').
...
Should also fix the broken py ops tips...
2012-07-03 09:02:41 +00:00
Campbell Barton
98e6912480
style cleanup
2012-06-19 22:17:19 +00:00
Campbell Barton
1642e2888c
rename Mesh.uv_loop_layers --> uv_layers
...
add filtering for document generator to support --partial bpy.types.SomeType
2012-04-22 23:51:50 +00:00