Campbell Barton
532c8ac583
Cleanup: pep8 function indentation
2018-06-26 19:58:56 +02:00
Sybren A. Stüvel
908ee2e0f2
Paint Dirt: remove operator call from Python
...
Instead of calling an operator I just call `collection.new()`. Moving the
code into a separate function also simplifies it. In its new form there is
also no undefined behaviour when me.vertex_colors is non-empty but without
active layer.
2018-02-09 12:52:46 +01:00
Sybren A. Stüvel
3c09077e3b
Paint Dirt: some small fixes
...
- normalize → average the vector: the vector isn't normalized here, because
it doesn't necessarily becomes unit length. Instead, the sum is converted
to an average vector.
- angle is the acos()…: the dot product between the vertex normal and the
average direction of the connected vertices is computed, and not the
opposite.
- The initial `con` list was discarded immediately and replaced by a new
list.
- File didn't end with a newline.
2018-02-09 10:35:03 +01: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
7095f47665
cleanup: pep8
...
also remove empty class parenthesis
2015-01-29 15:35:06 +11:00
Campbell Barton
b648ba4103
Fix T43345: Dirty Vertex Colors - odd behavior
...
was cancelling when the dynamic range was zero, but gave odd behavior,
using the last value, not the values from the UI.
2015-01-26 22:44:59 +11:00
Bastien Montagne
bb39925ec5
Fix T41454: Command "Dirty Vertex Colors" prompts Python error.
2014-08-15 19:51:14 +02:00
Campbell Barton
a15be34389
Code cleanup: unused python vars & imports
...
Use frosted rather then pyflakes
2014-04-25 05:36:16 +10:00
Campbell Barton
e965afcdcc
Python: remove redundant len() use
2014-02-19 00:05:31 +11:00
Campbell Barton
2085a42e52
pep8 cleanup
2013-06-27 03:05:19 +00:00
Campbell Barton
44d3d88f9a
code cleanup: minor improvements to scripts.
...
- make wm-property operators use INTERNAL option.
- make console use str.expandtabs() rather then replacing tab->spaces.
2013-04-20 13:23:53 +00:00
Campbell Barton
82bf87772e
add back attribution field from script.
2013-04-15 11:29:31 +00:00
Campbell Barton
84f229536a
fix [ #33715 ] Dirty Vertex Colors display problem since 2.65a
2013-01-03 07:01:41 +00:00
Campbell Barton
1cf0358a33
bmesh todo: vertex dirtmap now working again.
...
also renamed Polygon helper property from 'loops' to loop_indices
2012-04-13 08:41:30 +00:00
Bastien Montagne
1f6ae5e4fb
Minor UI messages fixes, and enabling i18n for all modifier_setError() error messages.
2012-03-17 14:27:46 +00:00
Campbell Barton
1f74789d12
Correct mathutils documentation, also correct some python spelling errors and add makefile target check_spelling
2012-02-08 04:37:37 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Bastien Montagne
daf51fe6cd
A big set of UI messages fixes and tweaks! No functional changes.
2011-10-20 07:56:04 +00:00
Campbell Barton
fda2045150
correct spelling errors in comments
2011-10-17 06:58:07 +00:00
Campbell Barton
90d19ad883
py style change only - make property definitions consistent
2011-08-19 19:25:20 +00:00
Campbell Barton
b374ab919a
import common classes from bpy.types, saves ~1000 python getattrs on startup.
2011-08-12 06:57:00 +00:00
Campbell Barton
a79820d284
properties were being used with wrong type functions, this resulted in bad memory access when getting int from an enum.
2011-03-22 12:53:36 +00:00
Campbell Barton
2e6a02438e
move script directories for internal blender scripts.
...
ui/ --> startup/bl_ui
op/ --> startup/bl_operators
scripts/startup/ is now the only auto-loading script dir which gives some speedup for blender loading too.
~/.blender/2.56/scripts/startup works for auto-loading scripts too.
2011-03-21 12:35:49 +00:00