Sv. Lockal
793e17ef6c
Remove superfluous iterations (caused by typo) and type casts in outliner
...
This significantly lowers the position of outliner_draw_tree_element in profiler
and partially fixes [#36260 ] (2,300 Objects Makes Blender Unresponsive)
2013-07-30 08:45:45 +00:00
Lukas Toenne
7e02d82036
Minor change to the custom_nodes.py template that has some consequences for addons: use bpy.types.* base classes instead of bpy_types.*
...
The bpy_types classes cause issues when used in addons when loading on Blender startup (subclasses cannot be properly registered).
2013-07-30 08:30:15 +00:00
Gaia Clary
90eec89125
Collada: renamed size_mat to scale_mat for clarity. removed obsolete variable definition
2013-07-30 07:32:37 +00:00
Gaia Clary
8140f56575
Collada: unit converter was not initialized for ArmatureImporter
2013-07-30 07:22:40 +00:00
Mitchell Stokes
620323a12c
Missed a couple of files for the vsync commit (r58729).
2013-07-29 22:36:51 +00:00
Mitchell Stokes
29f8dfd37a
BGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive vsync via UI options in the render properties, or by using the new Python method bge.render.setVsync(). Win32 and X11 support are done via EXT_swap_control. Support for using EXT_swap_control on OS X still needs to be added to Ghost.
2013-07-29 22:31:32 +00:00
Mitchell Stokes
2840edba84
BGE: Adding bge.physics as another alias for the PhysicsConstraints module.
2013-07-29 22:20:06 +00:00
Gaia Clary
a5cc8f2c92
Collada: Optimize Scale to scene. Only need to scale the root objects of a hierarchy
2013-07-29 22:15:04 +00:00
Gaia Clary
1a3a252e06
Collada: Import now always rotates input to match blender's Z_UP axis
2013-07-29 21:51:53 +00:00
Gaia Clary
c8958eea29
Added Scene scale calculator to UnitConverter for future usage (wip)
2013-07-29 21:22:59 +00:00
Brecht Van Lommel
c0875290bc
Fix #36290 : cycles generated texture coordinates were not sticking to the
...
surface again, got lost in an unrelated optimization.
2013-07-29 19:39:23 +00:00
Gaia Clary
966b301546
Added/changed comment for clarification
2013-07-29 17:27:27 +00:00
Brecht Van Lommel
6135a7adc8
Fix #36235 : cycles crash deactivating render layer during rendering.
2013-07-29 15:32:24 +00:00
Lukas Toenne
b517291fe6
Fix #36264 , New modulo math node not viewable in GLSL mode. Modulo math operation was simply missing the switch statement for gpu execution.
2013-07-29 11:42:23 +00:00
Campbell Barton
ac0568d856
fix [ #36280 ] Dynamic Topology crashes with active face
2013-07-29 09:18:35 +00:00
Campbell Barton
1300721d57
add asserts to ensure face normal is up to date.
2013-07-29 09:12:23 +00:00
Campbell Barton
02608d257a
add api call for initializing events from the windows eventstate.
2013-07-29 08:29:04 +00:00
Campbell Barton
c9eb93d9fd
fix for possible dounle fclose in makesrna's replace_if_different function.
2013-07-29 08:01:12 +00:00
Campbell Barton
cdc315a69b
bmesh optimization (noted as todo), avoid recalculating normal every time BM_face_legal_splits() runs,
...
assume normal is valid (assert when its not).
2013-07-29 06:04:09 +00:00
Campbell Barton
33a9cb6caa
minor changes for confusing code.
...
- memset() was argument was truncated.
- outliner had redundant NULL check.
- node texture was allocating memory to make a unique name which isnt needed for a fixed size string.
2013-07-29 04:45:40 +00:00
Campbell Barton
a25f00301f
make code style of makesrna.c conform to the rest of blender, was also some odd indentation for property and struct definitions.
2013-07-29 04:18:01 +00:00
Campbell Barton
9a4b2126a9
rename term 'grid node' --> 'grid division' wtr snapping tips.
2013-07-29 03:01:53 +00:00
Thomas Dinges
46ad9b6b47
UI / Code:
...
Cody style changes for r58692.
* First of all, UI code is really simple, especially in such small panels, no need to comment obvious things like left/right column.
* "if 1" nested structs for code clarity? That's a really bad thing, especially if you have 3 lines which belong together, but only 2 of them are indented...
sub = row.row()
sub.active = obj.show_bounds
sub.prop(obj, "draw_bounds_type", text="")
* Empty line after layout = self.layout declarations, we still follow these Rules.
http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Layouts
Thanks!
2013-07-28 22:12:19 +00:00
Campbell Barton
4f02555004
new mesh tool for cleaning up meshes, splits up non-planar faces while they exceed a given angle threshold
...
(access from the 'Mesh -> Clean' menu).
2013-07-28 19:53:46 +00:00
Campbell Barton
c754eaa0f9
add inline functions getting a single axis from mul_m3_v3()
2013-07-28 19:46:33 +00:00
Campbell Barton
fc4a777511
use '_exec' suffix for operator execute callbacks, also picky change to sizeof() use in BLI_array.h
2013-07-28 17:06:31 +00:00
Campbell Barton
b8e06518c9
add BLI_alloca.h, missed in previous commit
2013-07-28 12:17:00 +00:00
Campbell Barton
1448499d70
patch [ #36233 ] Fix Halo and Billboard Normal and Behavior
...
from Vitor Balbio (vitorbalbio)
Fixes billboard flipping (flipped normals and textures too)
2013-07-28 12:03:53 +00:00
Campbell Barton
46aea9c0c8
patch [ #36296 ] object->display-properties subpanel layout cleanup
...
from David Jeske (jeske), with minor edits of my own.
2013-07-28 11:43:11 +00:00
Campbell Barton
6864f2c285
move suspicious break statement in drawDispListsolid() to prevent falling through.
2013-07-28 11:15:26 +00:00
Campbell Barton
4982f200fa
move alloca define into its own header since its not related to BLI_array
2013-07-28 10:38:25 +00:00
Campbell Barton
72f2917032
bmesh: skip error checks when building in release mode (minor speedup),
...
also more strict use of BLI_array_declare(), only allow after array is declared.
2013-07-28 09:05:27 +00:00
Campbell Barton
b5890b3519
fix for freed memory access clearing tracks in the clip editor.
2013-07-28 07:11:00 +00:00
Campbell Barton
c4a50e9aeb
remove unneeded NULL checks, add one for give_matarar() return value.
2013-07-28 06:37:58 +00:00
Campbell Barton
0cb9a83113
code cleanup: remove unused code
2013-07-27 18:17:19 +00:00
Campbell Barton
684c4cc40d
fix for BKE_deform_split_suffix()
...
- out of bounds read when passing in empty string.
- single character prefix didnt work.
- with no suffix, the string body was truncated.
2013-07-27 18:16:22 +00:00
Campbell Barton
52e54d3c01
remove unused code & some redundant NULL checks.
2013-07-27 16:39:00 +00:00
Campbell Barton
aaa284f505
cleanup ED_view3d_from_m4() ambiguity with NULL checks, now assert if dist is set up but ofs.
...
also small optimization for matrix conversion.
2013-07-27 14:44:52 +00:00
Campbell Barton
d7ff7ad3e9
correct sloppy NULL checks, in interface code:
...
- uiPupMenuBegin was checking for NULL title but would still crash if it were NULL.
- now tag the function as 'nonnull' and remove NULL checks. make sure NULL isnt passed to it.
2013-07-27 14:17:20 +00:00
Campbell Barton
6aa001f48d
code cleanup: remove redundant NULL checks and avoid writing to the source string.
...
also rename BLI_replacestr() -> BLI_replacestrN() since it returns an allocated buffer.
2013-07-27 14:05:59 +00:00
Joshua Leung
d403537fc4
Code cleanup: Remove unused and unneeded code
2013-07-27 11:55:38 +00:00
Joshua Leung
59fabbb4f7
Style Cleanup for r.58659
...
Use proper RNA API function that was designed to be used in this case instead of
using ugly syntax
2013-07-27 11:54:52 +00:00
Campbell Barton
f83d733a62
fix for reading outside allocated memory when switching to the 3D view.
2013-07-27 10:32:27 +00:00
Campbell Barton
96dbc60e2d
fix for possible use of uninitialized variable in pastebuf_match_path_property()
...
wasn't checking if RNA_path_resolve() succeeded.
2013-07-27 09:38:34 +00:00
Campbell Barton
9c8721e1a1
code cleanup for thumbnails:
...
- use URI_MAX define
- replace strcat with BLI_snprintf.
2013-07-27 09:26:22 +00:00
Campbell Barton
09aadea2cc
remove unused code from object convert and indent.
2013-07-27 09:20:10 +00:00
Campbell Barton
e2ece45fec
fix for possible out of bounds read, printing a warning with pointcache header.
2013-07-27 09:19:03 +00:00
Campbell Barton
f4f90e73e1
fix for writing to freed memory enabling texture node tree
2013-07-27 08:21:43 +00:00
Campbell Barton
d894e5e762
internal api: args passed to ui_but_equals_old() were wrong order.
2013-07-27 08:06:46 +00:00
Campbell Barton
d68917cb86
code cleanup: typos
2013-07-27 07:02:27 +00:00