blender.git
6 years agoMerging r58475 through r58700 from trunk into soc-2013-depsgraph_mt
Sergey Sharybin [Mon, 29 Jul 2013 02:49:36 +0000 (02:49 +0000)]
Merging r58475 through r58700 from trunk into soc-2013-depsgraph_mt

6 years agoUI / Code:
Thomas Dinges [Sun, 28 Jul 2013 22:12:19 +0000 (22:12 +0000)]
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!

6 years agonew mesh tool for cleaning up meshes, splits up non-planar faces while they exceed...
Campbell Barton [Sun, 28 Jul 2013 19:53:46 +0000 (19:53 +0000)]
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).

6 years agoadd inline functions getting a single axis from mul_m3_v3()
Campbell Barton [Sun, 28 Jul 2013 19:46:33 +0000 (19:46 +0000)]
add inline functions getting a single axis from mul_m3_v3()

6 years agouse '_exec' suffix for operator execute callbacks, also picky change to sizeof()...
Campbell Barton [Sun, 28 Jul 2013 17:06:31 +0000 (17:06 +0000)]
use '_exec' suffix for operator execute callbacks, also picky change to sizeof() use in BLI_array.h

6 years agoadd BLI_alloca.h, missed in previous commit
Campbell Barton [Sun, 28 Jul 2013 12:17:00 +0000 (12:17 +0000)]
add BLI_alloca.h, missed in previous commit

6 years agopatch [#36233] Fix Halo and Billboard Normal and Behavior
Campbell Barton [Sun, 28 Jul 2013 12:03:53 +0000 (12:03 +0000)]
patch [#36233] Fix Halo and Billboard Normal and Behavior
from Vitor Balbio (vitorbalbio)

Fixes billboard flipping (flipped normals and textures too)

6 years agopatch [#36296] object->display-properties subpanel layout cleanup
Campbell Barton [Sun, 28 Jul 2013 11:43:11 +0000 (11:43 +0000)]
patch [#36296] object->display-properties subpanel layout cleanup
from David Jeske (jeske), with minor edits of my own.

6 years agomove suspicious break statement in drawDispListsolid() to prevent falling through.
Campbell Barton [Sun, 28 Jul 2013 11:15:26 +0000 (11:15 +0000)]
move suspicious break statement in drawDispListsolid() to prevent falling through.

6 years agomove alloca define into its own header since its not related to BLI_array
Campbell Barton [Sun, 28 Jul 2013 10:38:25 +0000 (10:38 +0000)]
move alloca define into its own header since its not related to BLI_array

6 years agobmesh: skip error checks when building in release mode (minor speedup),
Campbell Barton [Sun, 28 Jul 2013 09:05:27 +0000 (09:05 +0000)]
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.

6 years agofix for freed memory access clearing tracks in the clip editor.
Campbell Barton [Sun, 28 Jul 2013 07:11:00 +0000 (07:11 +0000)]
fix for freed memory access clearing tracks in the clip editor.

6 years agoremove unneeded NULL checks, add one for give_matarar() return value.
Campbell Barton [Sun, 28 Jul 2013 06:37:58 +0000 (06:37 +0000)]
remove unneeded NULL checks, add one for give_matarar() return value.

6 years agocode cleanup: remove unused code
Campbell Barton [Sat, 27 Jul 2013 18:17:19 +0000 (18:17 +0000)]
code cleanup: remove unused code

6 years agofix for BKE_deform_split_suffix()
Campbell Barton [Sat, 27 Jul 2013 18:16:22 +0000 (18:16 +0000)]
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.

6 years agoremove unused code & some redundant NULL checks.
Campbell Barton [Sat, 27 Jul 2013 16:39:00 +0000 (16:39 +0000)]
remove unused code & some redundant NULL checks.

6 years agocleanup ED_view3d_from_m4() ambiguity with NULL checks, now assert if dist is set...
Campbell Barton [Sat, 27 Jul 2013 14:44:52 +0000 (14:44 +0000)]
cleanup ED_view3d_from_m4() ambiguity with NULL checks, now assert if dist is set up but ofs.
also small optimization for matrix conversion.

6 years agocorrect sloppy NULL checks, in interface code:
Campbell Barton [Sat, 27 Jul 2013 14:17:20 +0000 (14:17 +0000)]
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.

6 years agocode cleanup: remove redundant NULL checks and avoid writing to the source string.
Campbell Barton [Sat, 27 Jul 2013 14:05:59 +0000 (14:05 +0000)]
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.

6 years agoCode cleanup: Remove unused and unneeded code
Joshua Leung [Sat, 27 Jul 2013 11:55:38 +0000 (11:55 +0000)]
Code cleanup: Remove unused and unneeded code

6 years agoStyle Cleanup for r.58659
Joshua Leung [Sat, 27 Jul 2013 11:54:52 +0000 (11:54 +0000)]
Style Cleanup for r.58659

Use proper RNA API function that was designed to be used in this case instead of
using ugly syntax

6 years agofix for reading outside allocated memory when switching to the 3D view.
Campbell Barton [Sat, 27 Jul 2013 10:32:27 +0000 (10:32 +0000)]
fix for reading outside allocated memory when switching to the 3D view.

6 years agofix for possible use of uninitialized variable in pastebuf_match_path_property()
Campbell Barton [Sat, 27 Jul 2013 09:38:34 +0000 (09:38 +0000)]
fix for possible use of uninitialized variable in pastebuf_match_path_property()
wasn't checking if RNA_path_resolve() succeeded.

6 years agocode cleanup for thumbnails:
Campbell Barton [Sat, 27 Jul 2013 09:26:22 +0000 (09:26 +0000)]
code cleanup for thumbnails:
- use URI_MAX define
- replace strcat with BLI_snprintf.

6 years agoremove unused code from object convert and indent.
Campbell Barton [Sat, 27 Jul 2013 09:20:10 +0000 (09:20 +0000)]
remove unused code from object convert and indent.

6 years agofix for possible out of bounds read, printing a warning with pointcache header.
Campbell Barton [Sat, 27 Jul 2013 09:19:03 +0000 (09:19 +0000)]
fix for possible out of bounds read, printing a warning with pointcache header.

6 years agofix for writing to freed memory enabling texture node tree
Campbell Barton [Sat, 27 Jul 2013 08:21:43 +0000 (08:21 +0000)]
fix for writing to freed memory enabling texture node tree

6 years agointernal api: args passed to ui_but_equals_old() were wrong order.
Campbell Barton [Sat, 27 Jul 2013 08:06:46 +0000 (08:06 +0000)]
internal api: args passed to ui_but_equals_old() were wrong order.

6 years agocode cleanup: typos
Campbell Barton [Sat, 27 Jul 2013 07:02:27 +0000 (07:02 +0000)]
code cleanup: typos

6 years agosimplify triangle joining and remove use of BLI_array.
Campbell Barton [Sat, 27 Jul 2013 06:45:11 +0000 (06:45 +0000)]
simplify triangle joining and remove use of BLI_array.

6 years agofix for joining face selection after recent api change, also bmo_join_triangles_exec...
Campbell Barton [Sat, 27 Jul 2013 06:11:54 +0000 (06:11 +0000)]
fix for joining face selection after recent api change, also bmo_join_triangles_exec() wasn't filling in its 'face' output slot.

6 years agofix for bridge tool selection flushing (after recent api change), also exposed bug...
Campbell Barton [Sat, 27 Jul 2013 05:57:20 +0000 (05:57 +0000)]
fix for bridge tool selection flushing (after recent api change), also exposed bug in bmesh edgering-subdiv operator.

6 years agoImport of single bones used infinite bone size
Gaia Clary [Fri, 26 Jul 2013 22:19:46 +0000 (22:19 +0000)]
Import of single bones used infinite bone size

6 years agofix [#36270] Crash with pinning
Campbell Barton [Fri, 26 Jul 2013 16:19:26 +0000 (16:19 +0000)]
fix [#36270] Crash with pinning

6 years agofix [#36286] UV face display not working for concave ngons
Campbell Barton [Fri, 26 Jul 2013 15:35:16 +0000 (15:35 +0000)]
fix [#36286] UV face display not working for concave ngons

6 years agofix for error in BLI_buffer_declare_static(), the stack variable wasn't the right...
Campbell Barton [Fri, 26 Jul 2013 15:26:51 +0000 (15:26 +0000)]
fix for error in BLI_buffer_declare_static(), the stack variable wasn't the right size, from original commit 53440.
Caused UV stretch display to fail.

6 years agofix [#36282] Spin error with non uniform scale
Campbell Barton [Fri, 26 Jul 2013 11:15:22 +0000 (11:15 +0000)]
fix [#36282] Spin error with non uniform scale
add support for passing object matrix to bmesh transform operators.

6 years agouse math functions for copying matrix/vector types, also cast const pointers for...
Campbell Barton [Fri, 26 Jul 2013 10:43:23 +0000 (10:43 +0000)]
use math functions for copying matrix/vector types, also cast const pointers for freeing (clang error's out otherwise)

6 years agofix for incorrect null check in RE_engine_update_stats
Campbell Barton [Fri, 26 Jul 2013 10:11:18 +0000 (10:11 +0000)]
fix for incorrect null check in RE_engine_update_stats

6 years agooptimization: call one bmesh operator for rotate (not 3).
Campbell Barton [Fri, 26 Jul 2013 06:12:49 +0000 (06:12 +0000)]
optimization: call one bmesh operator for rotate (not 3).
added pivot_m4() utility function since rotating about an arbitrary point is handy.

6 years agofix [#36277] Right click no longer selects the camera
Campbell Barton [Fri, 26 Jul 2013 05:08:24 +0000 (05:08 +0000)]
fix [#36277] Right click no longer selects the camera

6 years agofix [#36283] Crash by activating "Clear Active" in Movie Clip Editor
Campbell Barton [Fri, 26 Jul 2013 04:36:53 +0000 (04:36 +0000)]
fix [#36283] Crash by activating "Clear Active" in Movie Clip Editor

6 years agoBGE Fix [#18804] Shadow type faces cast onto invisible faces (non-GLSL)
Daniel Stokes [Thu, 25 Jul 2013 23:42:20 +0000 (23:42 +0000)]
BGE Fix [#18804] Shadow type faces cast onto invisible faces (non-GLSL)

Changing the RayHit method to ignore invisible faces

6 years agoadd twist option to bridge tool (for circular loops)
Campbell Barton [Thu, 25 Jul 2013 19:27:18 +0000 (19:27 +0000)]
add twist option to bridge tool (for circular loops)

6 years agomesh tool to fill in holes, added in mesh clean menu,
Campbell Barton [Thu, 25 Jul 2013 18:43:05 +0000 (18:43 +0000)]
mesh tool to fill in holes, added in mesh clean menu,
unlike other face creation tools it copies data from surrounding faces.

6 years agofix for face normal flipping calculation.
Campbell Barton [Thu, 25 Jul 2013 18:16:55 +0000 (18:16 +0000)]
fix for face normal flipping calculation.

6 years agoFix for own commit, stub functions all use the STUB_ASSERT macro now.
Lukas Toenne [Thu, 25 Jul 2013 16:04:26 +0000 (16:04 +0000)]
Fix for own commit, stub functions all use the STUB_ASSERT macro now.

6 years agoFix for bad level call introduced in r58597.
Lukas Toenne [Thu, 25 Jul 2013 15:38:22 +0000 (15:38 +0000)]
Fix for bad level call introduced in r58597.

6 years agoskip creating the draw-string for number buttons while editing the text (value was...
Campbell Barton [Thu, 25 Jul 2013 13:24:32 +0000 (13:24 +0000)]
skip creating the draw-string for number buttons while editing the text (value was overwritten)

6 years agoui: internal change. replace strcat with BLI string functions for key-event drawing.
Campbell Barton [Thu, 25 Jul 2013 13:18:11 +0000 (13:18 +0000)]
ui: internal change. replace strcat with BLI string functions for key-event drawing.

6 years agoadd missing break to space-buttons listener, also rewind own recent change (uiPopupBl...
Campbell Barton [Thu, 25 Jul 2013 12:46:20 +0000 (12:46 +0000)]
add missing break to space-buttons listener, also rewind own recent change (uiPopupBlockHandle.retvec size)

6 years agoadd missing va_end() calls.
Campbell Barton [Thu, 25 Jul 2013 12:37:22 +0000 (12:37 +0000)]
add missing va_end() calls.

6 years agoadjust createSpaceNormalTangent so it can take values from a matrix without having...
Campbell Barton [Thu, 25 Jul 2013 12:07:55 +0000 (12:07 +0000)]
adjust createSpaceNormalTangent so it can take values from a matrix without having to negate the plane first.
also add ED_armature_ebone_to_mat3/4 since there were quite a few places that did this inline.

6 years agofix [#36278] X,Y Direction wrong after bpy.ops.view3d.viewnumpad
Campbell Barton [Thu, 25 Jul 2013 11:05:08 +0000 (11:05 +0000)]
fix [#36278] X,Y Direction wrong after bpy.ops.view3d.viewnumpad

the cause of the problem was the orientation from the active object was inconstant.
copying the obmat directly gave a different result then getting the normal,tangent from getTransformOrientation and passing to createSpaceNormalTangent.

6 years agooptimization: manipulator was looping over all objects on redraw when the active...
Campbell Barton [Thu, 25 Jul 2013 08:36:35 +0000 (08:36 +0000)]
optimization: manipulator was looping over all objects on redraw when the active object was being used and it didn't need to.

6 years agotriangulate and beauty fill also needed changes to selection handling after recent...
Campbell Barton [Thu, 25 Jul 2013 07:00:07 +0000 (07:00 +0000)]
triangulate and beauty fill also needed changes to selection handling after recent changes.

6 years agocorrect problem with limited-dissolve not leaving the selection correctly (caused...
Campbell Barton [Thu, 25 Jul 2013 06:05:44 +0000 (06:05 +0000)]
correct problem with limited-dissolve not leaving the selection correctly (caused by BM_elem_attrs_copy no longer dealing with selection)

6 years agoadd api function BLI_path_append to add to a path (and ensure a seperator), replaces...
Campbell Barton [Wed, 24 Jul 2013 21:25:06 +0000 (21:25 +0000)]
add api function BLI_path_append to add to a path (and ensure a seperator), replaces BLI_join_dirfile when the dir and the destimation were the same.

6 years agofix/workaround [#36269] Crash upon right click on menu and left click on item
Campbell Barton [Wed, 24 Jul 2013 20:53:24 +0000 (20:53 +0000)]
fix/workaround [#36269] Crash upon right click on menu and left click on item

6 years agointernal change for ui_mouse_motion_towards_*** use,
Campbell Barton [Wed, 24 Jul 2013 20:50:30 +0000 (20:50 +0000)]
internal change for ui_mouse_motion_towards_*** use,
only run these checks for buttons using the UI_BLOCK_MOVEMOUSE_QUIT flag.
no functional change but makes debugging easier and was calculating mouse motion in relation to some popups for no reason.

6 years agodyn-topo: maintain materials for new faces.
Campbell Barton [Wed, 24 Jul 2013 19:58:16 +0000 (19:58 +0000)]
dyn-topo: maintain materials for new faces.
also minor optimization for BM_edge_in_face(), check edges radial loops rather then the faces edges
since normally there are 0-2 faces attached to an edge compared to 3+ edges in a face.

6 years agointernal bmesh api change: BM_elem_attrs_copy() no longer copies the selection flag.
Campbell Barton [Wed, 24 Jul 2013 19:31:58 +0000 (19:31 +0000)]
internal bmesh api change: BM_elem_attrs_copy() no longer copies the selection flag.
this was slowing down modifiers since the selection flags would be copied and flushed to connected geometry.

6 years agocode cleanup: use iterator macros, and replace BM_LOOPS_OF_FACE with direct loop...
Campbell Barton [Wed, 24 Jul 2013 18:38:55 +0000 (18:38 +0000)]
code cleanup: use iterator macros, and replace BM_LOOPS_OF_FACE with direct loop access when converting a bmesh to a mesh.

6 years agocurve only supported radius smoothing, add smooth for tilt and weight.
Campbell Barton [Wed, 24 Jul 2013 14:30:45 +0000 (14:30 +0000)]
curve only supported radius smoothing, add smooth for tilt and weight.

6 years ago- add individual origin support for curves and improve the orientation calculations...
Campbell Barton [Wed, 24 Jul 2013 13:56:36 +0000 (13:56 +0000)]
- add individual origin support for curves and improve the orientation calculations for curve handles,
- add support for using the active point's orientation.
- add support for creating new custom orientations from curves.
- fix error where only the last selected curve handle was taken into account for manipulator orientations.

6 years agosequencer: replace warning message with assert, was printing when copying masks and...
Campbell Barton [Wed, 24 Jul 2013 07:11:00 +0000 (07:11 +0000)]
sequencer: replace warning message with assert, was printing when copying masks and movieclips but went by unnoticed.

6 years agofix [#36262] Paste strip with video or sound content from another file crashes Blender
Campbell Barton [Wed, 24 Jul 2013 06:51:04 +0000 (06:51 +0000)]
fix [#36262] Paste strip with video or sound content from another file crashes Blender

existing code was very stupid.

- all ID pointers for clipboard strips are handled uniformly.
- clipboard stores a duplicate ID pointer which are restored on paste.
- restoring pointers...
-- use ID's that are still in the database (copy&paste within the same file).
-- fallback to name lookup.
-- fallback to loading them from the original filepath (movie-clip and sound only).

also fix bug pasting where initialing the sound wasn't done if there was no frame-offset.

6 years agoBGE Fix [#29575] Object not drawn in game engine
Daniel Stokes [Wed, 24 Jul 2013 05:12:51 +0000 (05:12 +0000)]
BGE Fix [#29575] Object not drawn in game engine

Implementing a GetBlenderImage for KX_BlenderMaterial so that modifiers draw correctly in multitexture mode. The preexisting limitation of 1 texture per material on objects with modifiers in multitexture mode still exists.

6 years agopasting strips in the sequencer didn't check if they overlap existing strips.
Campbell Barton [Wed, 24 Jul 2013 05:01:22 +0000 (05:01 +0000)]
pasting strips in the sequencer didn't check if they overlap existing strips.

6 years agoBGE fix [#21488] Pumpkin in Gamekit Tutorial flips upside down
Daniel Stokes [Wed, 24 Jul 2013 00:32:26 +0000 (00:32 +0000)]
BGE fix [#21488] Pumpkin in Gamekit Tutorial flips upside down

A reference was being grabbed when a copy was wanted.

6 years agoremove use_relative option from simple deform,
Campbell Barton [Tue, 23 Jul 2013 19:31:49 +0000 (19:31 +0000)]
remove use_relative option from simple deform,
all modifiers should be using object transformations relatively.

6 years agofix [#36256] Checker Deselect, failed with de-selected active face.
Campbell Barton [Tue, 23 Jul 2013 18:49:44 +0000 (18:49 +0000)]
fix [#36256] Checker Deselect, failed with de-selected active face.

6 years agoavoid calling context functions when direct access is possible.
Campbell Barton [Tue, 23 Jul 2013 18:30:06 +0000 (18:30 +0000)]
avoid calling context functions when direct access is possible.

6 years agoFix [#36259] Select linked flat faces with Shift+Ctrl+Alt+F does not work in ver...
Bastien Montagne [Tue, 23 Jul 2013 18:03:40 +0000 (18:03 +0000)]
Fix [#36259] Select linked flat faces with Shift+Ctrl+Alt+F does not work in ver. 2.68

Code was cleaning BM_ELEM_TAG flag of verts, when it actually uses the one of faces...

6 years agoCycles / CMJ:
Thomas Dinges [Tue, 23 Jul 2013 16:23:30 +0000 (16:23 +0000)]
Cycles / CMJ:
* path_rng_2D() was missing an else branch for the sobol case after fix in r57383.

6 years ago* Compile fix for r58542, on Windows "subdir" was unknown.
Thomas Dinges [Tue, 23 Jul 2013 16:04:49 +0000 (16:04 +0000)]
* Compile fix for r58542, on Windows "subdir" was unknown.

6 years agocorrect own error in recent edits to editderivedmesh
Campbell Barton [Tue, 23 Jul 2013 15:05:33 +0000 (15:05 +0000)]
correct own error in recent edits to editderivedmesh

6 years agouse binary prefix for file sizes (old todo).
Campbell Barton [Tue, 23 Jul 2013 15:01:59 +0000 (15:01 +0000)]
use binary prefix for file sizes (old todo).

6 years agolet the enter key active text buttons and the unlink button
Campbell Barton [Tue, 23 Jul 2013 14:55:47 +0000 (14:55 +0000)]
let the enter key active text buttons and the unlink button

6 years agocode cleanup: remove deprecated bevel code (unused since 2.64)
Campbell Barton [Tue, 23 Jul 2013 14:28:19 +0000 (14:28 +0000)]
code cleanup: remove deprecated bevel code (unused since 2.64)

6 years agofix for crash in track_markers_freejob (use freed memory)
Campbell Barton [Tue, 23 Jul 2013 14:22:47 +0000 (14:22 +0000)]
fix for crash in track_markers_freejob (use freed memory)

6 years agofix for crash when unlinking a scene from the renderlayers, also no need for PROP_ID_...
Campbell Barton [Tue, 23 Jul 2013 14:09:53 +0000 (14:09 +0000)]
fix for crash when unlinking a scene from the renderlayers, also no need for PROP_ID_SELF_CHECK here.

6 years agoreplace use of strcat() where the string offset is known.
Campbell Barton [Tue, 23 Jul 2013 12:49:30 +0000 (12:49 +0000)]
replace use of strcat() where the string offset is known.
also correct bad logic with converting a textblock to 3d-text, bytes-vs-number of chars wasn't handled right.

6 years agocode cleanup: remove unused material/texture naming functions.
Campbell Barton [Tue, 23 Jul 2013 12:45:28 +0000 (12:45 +0000)]
code cleanup: remove unused material/texture naming functions.

6 years agocode cleanup: remove dead code, view3d panel was building a menu string and not using it.
Campbell Barton [Tue, 23 Jul 2013 12:18:12 +0000 (12:18 +0000)]
code cleanup: remove dead code, view3d panel was building a menu string and not using it.

6 years agoFix #36225, spacing was halved and set to zero for texture paint brushes that had...
Antony Riakiotakis [Tue, 23 Jul 2013 11:13:39 +0000 (11:13 +0000)]
Fix #36225, spacing was halved and set to zero for texture paint brushes that had spacing of 1. Related to own changes to maintain spacing consistent between 2.67-2.66.

6 years agobge: de-duplicate cleanup code for empty mesh error case
Campbell Barton [Tue, 23 Jul 2013 10:59:29 +0000 (10:59 +0000)]
bge: de-duplicate cleanup code for empty mesh error case

6 years agoprepare for 'a' bugfix release, splash and version bump.
Campbell Barton [Tue, 23 Jul 2013 08:10:46 +0000 (08:10 +0000)]
prepare for 'a' bugfix release, splash and version bump.

6 years agoreplave isfinite with finite for msvc
Campbell Barton [Tue, 23 Jul 2013 07:40:07 +0000 (07:40 +0000)]
replave isfinite with finite for msvc

6 years agoMinor UI typo fix... ;)
Bastien Montagne [Tue, 23 Jul 2013 06:58:05 +0000 (06:58 +0000)]
Minor UI typo fix... ;)

6 years agoBGE fix [#35472] Sun variance shadows does not work in game engine
Daniel Stokes [Tue, 23 Jul 2013 00:52:49 +0000 (00:52 +0000)]
BGE fix [#35472] Sun variance shadows does not work in game engine

The game engine had depth testing enabled when blurring the shadows which caused the blurring to not work properly.

6 years agofix own regression, OpenGL render with 'New Window' display-mode was broken
Campbell Barton [Mon, 22 Jul 2013 23:44:46 +0000 (23:44 +0000)]
fix own regression, OpenGL render with 'New Window' display-mode was broken
need to re-assign after opening a new window.

6 years agouse BLI_bitmap for crazyspace vertex tagging.
Campbell Barton [Mon, 22 Jul 2013 23:33:53 +0000 (23:33 +0000)]
use BLI_bitmap for crazyspace vertex tagging.

6 years agoremove the pointer from BLI_bitmap's typedef,
Campbell Barton [Mon, 22 Jul 2013 23:20:48 +0000 (23:20 +0000)]
remove the pointer from BLI_bitmap's typedef,
hides that an arg passed is really an array which may be modified by other functions.

6 years agooptimization: only calculate the normals for passing into derivedMesh foreachMappedVe...
Campbell Barton [Mon, 22 Jul 2013 22:59:47 +0000 (22:59 +0000)]
optimization: only calculate the normals for passing into derivedMesh foreachMappedVert/foreachMappedFaceCenter when needed,
this means in editmode with wire draw, face and vertex normals don't have to be calculated at all.

in most cases the normals are not used so add a flag that makes calculating them only for functions that need them.
also fix face normal calculation for CDDM, was using quad calculation for ngons too.

6 years agoBGE: Fix for [#34398] "«illegal operator» in Expression Controller" reported by Andre...
Mitchell Stokes [Mon, 22 Jul 2013 22:46:17 +0000 (22:46 +0000)]
BGE: Fix for [#34398] "«illegal operator» in Expression Controller" reported by Andrey Kashlak (andreymal)

The expressions system now supports the not operator on ints and floats.

6 years agohidden-wire draw option: always use the cage when masking out faces otherwise modifie...
Campbell Barton [Mon, 22 Jul 2013 21:45:01 +0000 (21:45 +0000)]
hidden-wire draw option: always use the cage when masking out faces otherwise modifiers give odd results.

6 years agofix/workaround for crash in ocean modifier when size is zero (causes invalid array...
Campbell Barton [Mon, 22 Jul 2013 21:02:45 +0000 (21:02 +0000)]
fix/workaround for crash in ocean modifier when size is zero (causes invalid array index/lookups).

6 years agofix [#36247] Modifier Ocean (Geometry in Displace)- Subdivision Surface
Campbell Barton [Mon, 22 Jul 2013 20:53:52 +0000 (20:53 +0000)]
fix [#36247] Modifier Ocean (Geometry in Displace)- Subdivision Surface
regression in 2.68

6 years agofix [#36248] Crash using factor input on color mix node.
Campbell Barton [Mon, 22 Jul 2013 19:59:07 +0000 (19:59 +0000)]
fix [#36248] Crash using factor input on color mix node.