blender.git
7 years agoFix #28733, #29885: fix missing scene in context in python. The window manager
Brecht Van Lommel [Mon, 30 Jan 2012 15:12:51 +0000 (15:12 +0000)]
Fix #28733, #29885: fix missing scene in context in python. The window manager
would indirectly clear it when clearing the window from the context. This makes
some sense when we support multiple scenes properly, but currently there's still
many places assuming there is a single active scene, so keep it available to
avoid crashes.

7 years agoFix wrong uv editor Border Select Pinned name in menu.
Brecht Van Lommel [Mon, 30 Jan 2012 14:28:45 +0000 (14:28 +0000)]
Fix wrong uv editor Border Select Pinned name in menu.

7 years agofile selector - entering and empty path on *nix would ask to create a new dir.
Campbell Barton [Mon, 30 Jan 2012 10:04:27 +0000 (10:04 +0000)]
file selector - entering and empty path on *nix would ask to create a new dir.

7 years agodisplay keyblock mute in the shape key list.
Campbell Barton [Mon, 30 Jan 2012 09:49:30 +0000 (09:49 +0000)]
display keyblock mute in the shape key list.

Realize this is bcon3 but this is was very bad IMHO.
- button adjusting key block was in between 2 object settings - which is misleading/confusing.
- you needed to click through all shapes to check which was muted, currently you's assume 1.0 means the shape is enabled.

7 years agoFix #29976: Carve Boolenas crasher with Solidify
Sergey Sharybin [Mon, 30 Jan 2012 09:19:38 +0000 (09:19 +0000)]
Fix #29976: Carve Boolenas crasher with Solidify

Issue was caused by union policy needed to deal with cases when operand intersects
two or more intersecting meshes of another operand.

Changed this policy to run union operation only if there's actual intersection
between two meshes of the same object. Should work in general but it's still
possible to make it behave incorrect -- for example object consist of two groups
if concentric cubes which intersects each other.

7 years agoFix #30021: Crash happens when rotating markers
Sergey Sharybin [Mon, 30 Jan 2012 09:10:58 +0000 (09:10 +0000)]
Fix #30021: Crash happens when rotating markers

7 years agoFix #30020: Movie Clip Editor Crashed with panel size changed
Sergey Sharybin [Mon, 30 Jan 2012 09:05:26 +0000 (09:05 +0000)]
Fix #30020: Movie Clip Editor Crashed with panel size changed

7 years agoRemoved check for active node in edited node group to allow node group editing toggle...
Lukas Toenne [Mon, 30 Jan 2012 09:00:54 +0000 (09:00 +0000)]
Removed check for active node in edited node group to allow node group editing toggle. This enables closing an empty node group again (after removing all nodes or when empty group is added via menu). Fix for bug #30018.

7 years agoMake Image and Alpha outputs in render layer node 'unavailable' when the Combined...
Lukas Toenne [Mon, 30 Jan 2012 08:48:11 +0000 (08:48 +0000)]
Make Image and Alpha outputs in render layer node 'unavailable' when the Combined pass is not active in the render layer. Fix for bug #29999.

The internal code for render layers node is unchanged, since the buffer is created anyway. Also noticed that, while unavailable sockets and links to/from them are not displayed, they are still used in execution, which could lead to unexpected results. But that's a more general problem with the way (pseudo-)dynamic sockets are simply flagged with SOCK_UNAVAIL.

7 years agoFix #29993: Boolean modifier crashes Blender
Sergey Sharybin [Mon, 30 Jan 2012 08:45:12 +0000 (08:45 +0000)]
Fix #29993: Boolean modifier crashes Blender

Crash was caused by error in Carve triangulator. Fixed by upgrading Carve library.

7 years agopydoc cleanup + remove unused bge.logic constants
Dalai Felinto [Mon, 30 Jan 2012 06:47:01 +0000 (06:47 +0000)]
pydoc cleanup + remove unused bge.logic constants
+ adding PINGPONG as action actuator constant in rst

7 years agofix [#30017] Make Dupli-Face needs active mesh object
Campbell Barton [Sun, 29 Jan 2012 21:28:04 +0000 (21:28 +0000)]
fix [#30017] Make Dupli-Face needs active mesh object

7 years agoFixed for cloth modifier when it's applied after deformation modifier.
Sergey Sharybin [Sun, 29 Jan 2012 16:55:57 +0000 (16:55 +0000)]
Fixed for cloth modifier when it's applied after deformation modifier.

7 years agoFix for [#30015] Keyframed Resolution Unpredictable
Thomas Dinges [Sun, 29 Jan 2012 10:21:28 +0000 (10:21 +0000)]
Fix for [#30015] Keyframed Resolution Unpredictable
* Disabled possibility to keyframe render resolution, percentage and border render properties. Animating them does not makes much sense. Discussed with Sergey in IRC.

7 years agoRelease cycle:
Thomas Dinges [Sat, 28 Jan 2012 13:53:17 +0000 (13:53 +0000)]
Release cycle:
* Moving on to BCon3: Beta.

7 years agoFixed typo in a tooltip
Sergey Sharybin [Sat, 28 Jan 2012 08:45:51 +0000 (08:45 +0000)]
Fixed typo in a tooltip

7 years agoDynamic Paint:
Miika Hamalainen [Fri, 27 Jan 2012 17:44:56 +0000 (17:44 +0000)]
Dynamic Paint:
* Fix: Brush didn't paint particles that were hidden by the display percentage setting.

7 years agoAlways assume isFinalCals is truth when applying constructive modifiers on curves
Sergey Sharybin [Fri, 27 Jan 2012 14:17:59 +0000 (14:17 +0000)]
Always assume isFinalCals is truth when applying constructive modifiers on curves
for viewport display.

It saves plenty of memory when using subsurf modifier which result is getting
converted from CCGDM to CDDM without any benefit. It also syncs behavior of
modifiers with mesh.

Need to keep an eye on constructive modifiers when in edit mode.

Discovered this when was looking into #29973.

7 years agoCycles: another fix for CUDA render passes, needed to align float4 passes.
Brecht Van Lommel [Fri, 27 Jan 2012 13:58:32 +0000 (13:58 +0000)]
Cycles: another fix for CUDA render passes, needed to align float4 passes.

7 years agoFixed some possible issues and access non-initialized variable in Carve BOP interface.
Sergey Sharybin [Fri, 27 Jan 2012 08:17:53 +0000 (08:17 +0000)]
Fixed some possible issues and access non-initialized variable in Carve BOP interface.

Discovered when was investigating some crashes caused by Carve's triangulator.

7 years agoMinor fix for CD_TYPE_AS_MASK macro: shift operator uses the left
Nicholas Bishop [Fri, 27 Jan 2012 08:15:30 +0000 (08:15 +0000)]
Minor fix for CD_TYPE_AS_MASK macro: shift operator uses the left
operand's type for the result, so cast 1 to CustomDataMask.

7 years agoFix #30000: Boolean modifier messing up multi material
Sergey Sharybin [Fri, 27 Jan 2012 08:04:03 +0000 (08:04 +0000)]
Fix #30000: Boolean modifier messing up multi material

Issue was caused by resetting face's mat_nr to zero if there's no material
map sent to ConvertCSGDescriptorsToDerivedMesh. In case of boolean modifier
we can't use such map because we can't affect on materials present in object.

So the only way which can give reasonable result is:
- Dot change mat_nr for faces from left operand (they should be fine, because
  materials aren't deleting by modifier)
- For faces from right operand check if needed material exists in left operand
  and if so, use it's index as new mat_nr.
- If there are materials in right operand which doesn't exist in left operand,
  they'll be changed to first material from left operand.

7 years agoFix [#29884] Splash screen only displays "r43"
Nathan Letwory [Fri, 27 Jan 2012 07:35:57 +0000 (07:35 +0000)]
Fix [#29884] Splash screen only displays "r43"
Based on patch by perfection cat

Removed the unnecessary char * juggling.

7 years agoAction Constraint GUI - Refinements and Clarification
Joshua Leung [Fri, 27 Jan 2012 01:30:58 +0000 (01:30 +0000)]
Action Constraint GUI - Refinements and Clarification

While looking at a bug report, I found that the current GUI for the Action
Constraint actually didn't make sense, mixing up settings so that it wasn't
clear which settings corresponded to which others. This commit cleans up the
layout into a clearer two-column design to have a "from" -> "to" layout, making
all the
relationships between things clear.

For more details see http://aligorith.blogspot.com/2012/01/action-constraint-
gui-revised.html

7 years agoCycles: disable environment importance sampling code for CUDA cards with
Brecht Van Lommel [Thu, 26 Jan 2012 19:45:59 +0000 (19:45 +0000)]
Cycles: disable environment importance sampling code for CUDA cards with
compute model < 2.x, to avoid running out of memory in the compiler.

7 years agoCycles: render passes for CUDA cards with compute model >= 2.x.
Brecht Van Lommel [Thu, 26 Jan 2012 19:07:01 +0000 (19:07 +0000)]
Cycles: render passes for CUDA cards with compute model >= 2.x.

7 years agoFix orthogonality check for mat3 and mat4
Sv. Lockal [Thu, 26 Jan 2012 17:11:43 +0000 (17:11 +0000)]
Fix orthogonality check for mat3 and mat4

7 years agoFix #29957: Texture "Generate" mapping work as global with cloth modifier
Sergey Sharybin [Thu, 26 Jan 2012 17:03:30 +0000 (17:03 +0000)]
Fix #29957: Texture "Generate" mapping work as global with cloth modifier

Make Cloth modifier deformation only so now it applies on orco dm properly.

7 years agoCycles: fixes for OpenCL build after pass changes, patch by Daniel Genrich.
Brecht Van Lommel [Thu, 26 Jan 2012 15:37:33 +0000 (15:37 +0000)]
Cycles: fixes for OpenCL build after pass changes, patch by Daniel Genrich.

7 years agoColor channels used for tracking is now a part of default tracking settings and also...
Sergey Sharybin [Thu, 26 Jan 2012 15:33:16 +0000 (15:33 +0000)]
Color channels used for tracking is now a part of default tracking settings and also a part of presets.

7 years agoMovie clip editor: default tracking settings can be copied from active track now
Sergey Sharybin [Thu, 26 Jan 2012 15:04:25 +0000 (15:04 +0000)]
Movie clip editor: default tracking settings can be copied from active track now

7 years agoFix #29960: fields option should not be used for external engine rendering.
Brecht Van Lommel [Thu, 26 Jan 2012 14:55:46 +0000 (14:55 +0000)]
Fix #29960: fields option should not be used for external engine rendering.

7 years agoFix #29966: cycles elapsed time not resetting in viewport after changes.
Brecht Van Lommel [Thu, 26 Jan 2012 14:55:39 +0000 (14:55 +0000)]
Fix #29966: cycles elapsed time not resetting in viewport after changes.

7 years agoCycles: fix issues rendering second render layer passes, and avoid unnecessary
Brecht Van Lommel [Thu, 26 Jan 2012 14:55:25 +0000 (14:55 +0000)]
Cycles: fix issues rendering second render layer passes, and avoid unnecessary
clear of buffer.

7 years agoMovie clip editor: curves view shouldn't jump back to top when click on it
Sergey Sharybin [Thu, 26 Jan 2012 13:13:48 +0000 (13:13 +0000)]
Movie clip editor: curves view shouldn't jump back to top when click on it

Also it should now re-store position after toggling it.

7 years agoFix #29958: Search Menu keeps hiding first character(s) after long input
Sergey Sharybin [Thu, 26 Jan 2012 12:48:36 +0000 (12:48 +0000)]
Fix #29958: Search Menu keeps hiding first character(s) after long input

- ui_check_but() in ui_textedit_move() is necessary because this function clips
  but->drawstring to fit text entry widget and it confuses cursor movement stuff.
  ui_check_but copies editstring to drawstring, so displaystring would be clipped
  again in correct way.
- If the whole drawstring fits widget, no need to set button's offset.

7 years agoFix #29895 Fast Alt-Mousewheel toggling of Mapping Modes scrubs timeline
Sergey Sharybin [Thu, 26 Jan 2012 12:44:31 +0000 (12:44 +0000)]
Fix #29895 Fast Alt-Mousewheel toggling of Mapping Modes scrubs timeline

Issue was caused by changing button state to EXIT, so there's no active button just after
applying Alt-Wheel event. Setting this state is needed to prevent button trigger cancel
callback when mouse is leaving hovered menu button.

Using the same "post activate" trick used by Tab button allows to make prevent canceling
button and makes this button active again after applying all handlers.

There's still issues with Alt-Scroll if changing active element in menu leads to interface
changes (like file format in render buttons) -- in this case button simple doesn't receive
wheel events and it's actually not connected to this issue.

7 years agoMore curves view improvements for clip editor:
Sergey Sharybin [Thu, 26 Jan 2012 11:49:38 +0000 (11:49 +0000)]
More curves view improvements for clip editor:

- Renamed graph_jump_to_current_frame to graph_center_current_frame
  which makes more sense.
- Curve view now can be locked to time cursor (Lock to Time Cursor in
  Display panel or L button in curve view). Not sure if offset from
  locked position will make much sense here.
- Added hotkey for solving -- Shift-S.

7 years agoPossible fix for implicit declaration of av_rescale_q on some platforms.
Sergey Sharybin [Thu, 26 Jan 2012 11:16:49 +0000 (11:16 +0000)]
Possible fix for implicit declaration of av_rescale_q on some platforms.

7 years agoFix implicit declaration of guardedalloc functions in avi's endian.c.
Sergey Sharybin [Thu, 26 Jan 2012 10:59:31 +0000 (10:59 +0000)]
Fix implicit declaration of guardedalloc functions in avi's endian.c.
Discovered by debian building system.

7 years agoFix build on debian ports that differs from generic i386/x86_64 like kFreeBSD
Sergey Sharybin [Thu, 26 Jan 2012 10:36:36 +0000 (10:36 +0000)]
Fix build on debian ports that differs from generic i386/x86_64 like kFreeBSD

Patch by Kevin Roy, thanks!

7 years agoMovie clip editor: graph view now can be toggled using Z key
Sergey Sharybin [Thu, 26 Jan 2012 09:53:58 +0000 (09:53 +0000)]
Movie clip editor: graph view now can be toggled using Z key

7 years agoTracks curves fixes and improvements:
Sergey Sharybin [Thu, 26 Jan 2012 09:29:49 +0000 (09:29 +0000)]
Tracks curves fixes and improvements:

- Use proper poll functions for tracks curve operators.
- Darken frames outside of scene frame range in curves view.
- Implemented view all operator.
- Implemented jump to current frame operator.

7 years agoReplace hard-coded structures in selection callbacks in view3d_select with typedef...
Sergey Sharybin [Thu, 26 Jan 2012 08:12:12 +0000 (08:12 +0000)]
Replace hard-coded structures in selection callbacks in view3d_select with typedef-ed structures.

Should be no functional changes, but this discovered inconsistency in structures
used for armature circle selection, not sure how harmful this were, but it's not
nice to have such inconsistencies. Anyway, it's resolved now.

7 years agoFix for layer toggling always sticking to extend policy.
Sergey Sharybin [Thu, 26 Jan 2012 07:33:14 +0000 (07:33 +0000)]
Fix for layer toggling always sticking to extend policy.

Reported by Dalai in IRC, thanks for pointing to issue.

7 years agoFix #29991: Broken Hotkeys for rotation in custom Maya-Navigation. >rev43375
Sergey Sharybin [Thu, 26 Jan 2012 07:18:26 +0000 (07:18 +0000)]
Fix #29991: Broken Hotkeys for rotation in custom Maya-Navigation. >rev43375

Issue was caused by incorrect operator property set in revision 43376.

7 years agoadded support for USB Spaceball5000, also a partial attempt to accept button presses...
Mike Erwin [Thu, 26 Jan 2012 03:27:10 +0000 (03:27 +0000)]
added support for USB Spaceball5000, also a partial attempt to accept button presses from unidentified 3D mice (for ancient serial devices)

7 years agodisable toggle option for BGE boolean property, not sure why this was set.
Campbell Barton [Thu, 26 Jan 2012 01:46:16 +0000 (01:46 +0000)]
disable toggle option for BGE boolean property, not sure why this was set.

7 years agofix [#29987] scene.frame_set method doesn't take in account camera change done via...
Campbell Barton [Wed, 25 Jan 2012 22:13:08 +0000 (22:13 +0000)]
fix [#29987] scene.frame_set method doesn't take in account camera change done via markers

7 years agohrmf, fix for fix [#29988] Segfault when unwrap default cube with smart project ...
Campbell Barton [Wed, 25 Jan 2012 22:06:53 +0000 (22:06 +0000)]
hrmf, fix for fix [#29988] Segfault when unwrap default cube with smart project / follow active quads

I think that we need a check here for thick wrapped strings but for now we dont have any thick wrapped strings with default values so comment it.

7 years agoFix #29989: Ctrl + T to show seconds in timeline, python error
Sergey Sharybin [Wed, 25 Jan 2012 21:23:34 +0000 (21:23 +0000)]
Fix #29989: Ctrl + T to show seconds in timeline, python error

Issue seems to be caused by refactoring from rev43376.

7 years agoCycles: Render Passes
Brecht Van Lommel [Wed, 25 Jan 2012 17:23:52 +0000 (17:23 +0000)]
Cycles: Render Passes

Currently supported passes:
* Combined, Z, Normal, Object Index, Material Index, Emission, Environment,
  Diffuse/Glossy/Transmission x Direct/Indirect/Color

Not supported yet:
* UV, Vector, Mist

Only enabled for CPU devices at the moment, will do GPU tweaks tommorrow,
also for environment importance sampling.

Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Passes

7 years agoFix #29892: Properties of objects in nested custom collections stop being animatable...
Sergey Sharybin [Wed, 25 Jan 2012 16:14:24 +0000 (16:14 +0000)]
Fix #29892: Properties of objects in nested custom collections stop being animatable once an object get added to an unrelated custom collection.

Issue was caused by attempting to find rna path in all property collections
which lead to overwritting already found path.

7 years agoVarious fixes for camera tracking stuff
Sergey Sharybin [Wed, 25 Jan 2012 13:37:11 +0000 (13:37 +0000)]
Various fixes for camera tracking stuff

- Fixed tooltip displaying for track sequence forwards in clip editor
- Corrected detection of 8 tracks so it wouldn't count tracks disabled
  on keyframes.
- Scale track preview to actual track widget size instead of scaling the
  whole preview image with given zoom ratio, so no extra memory needed to
  store zoomed margin would be used.
- Track's statistics text will fit pattern position instead of search if
  marker is disabled on current frame.
- Fixed toggle selection operator if selected track is hidden due to
  "Hide Disabled" policy.

7 years agoFix typo for sharpen graph post-processing so fac1+fac2+fac3 always equals 1.0
Sv. Lockal [Wed, 25 Jan 2012 10:10:15 +0000 (10:10 +0000)]
Fix typo for sharpen graph post-processing so fac1+fac2+fac3 always equals 1.0

7 years agoFix typo in camera reconstruction context creation.
Sergey Sharybin [Wed, 25 Jan 2012 09:27:18 +0000 (09:27 +0000)]
Fix typo in camera reconstruction context creation.

Thanks to Lockal to pointing out!

7 years agoCucumber left over: new scene needs a default ESC key
Dalai Felinto [Wed, 25 Jan 2012 01:39:38 +0000 (01:39 +0000)]
Cucumber left over: new scene needs a default ESC key

7 years agofound a bug by accident.
Campbell Barton [Tue, 24 Jan 2012 22:15:25 +0000 (22:15 +0000)]
found a bug by accident.
- bugfix for setting string defaults in rna functions (incorrect pointer use and would copy past string length).
- Object.dm_info was setting a default when it didnt need to.

7 years agoNode UI:
Thomas Dinges [Tue, 24 Jan 2012 20:56:19 +0000 (20:56 +0000)]
Node UI:
* Make sure to check on snode_id, raised errors if no world datablock was active.

7 years agofix for memory leak when particles have 0 elements.
Campbell Barton [Tue, 24 Jan 2012 20:33:26 +0000 (20:33 +0000)]
fix for memory leak when particles have 0 elements.

7 years agoImprovement for last commit, only do redraw when actually needed (in world shader...
Thomas Dinges [Tue, 24 Jan 2012 20:19:26 +0000 (20:19 +0000)]
Improvement for last commit, only do redraw when actually needed (in world shader type)

7 years agoFix compilation error caused by recent changes in file browser stuff
Sergey Sharybin [Tue, 24 Jan 2012 20:13:44 +0000 (20:13 +0000)]
Fix compilation error caused by recent changes in file browser stuff

7 years agoCycles Node Editor:
Thomas Dinges [Tue, 24 Jan 2012 20:10:37 +0000 (20:10 +0000)]
Cycles Node Editor:
* Add Use Nodes button for World shader type
* UI was not redrawing the Node area, when enabling "Use nodes", added check for it to the listener.

7 years agouse a struct to pass normals to normal draw derived mesh callbacks (no functional...
Campbell Barton [Tue, 24 Jan 2012 19:57:34 +0000 (19:57 +0000)]
use a struct to pass normals to normal draw derived mesh callbacks (no functional changes)

7 years agoEnable 16 bit format for float textures by default after discussion with Morten and...
Antony Riakiotakis [Tue, 24 Jan 2012 19:54:18 +0000 (19:54 +0000)]
Enable 16 bit format for float textures by default after discussion with Morten and Sergey on irc. Rationale is that for most cases when people create a float texture they will expect the extra precision in the 3D view.

This shouldn't be a problem on any graphics card since internally a very old texture format (GL 1.1) is used. In the case of any unlikely screams, a revert of this commit can be done.

7 years agoFix #29946: Recover Auto Save defaults to "Short List" View -- Cannot determine dates
Sergey Sharybin [Tue, 24 Jan 2012 18:18:51 +0000 (18:18 +0000)]
Fix #29946: Recover Auto Save defaults to "Short List" View -- Cannot determine dates

Added option display_type to WM_operator_properties_filesel which defines which file
display type (short/list/icons/default) should be used for file browser.

All current operators are using FILE_DEFAULTDISPLAY display type which means display
type will still be calculated based on type of opening file and user preferences
settings. Recover Auto Save operator is now using long display type so file date can
easily be checked now.

Reviewed by Andrea, thanks!

7 years agoDynamic Paint:
Miika Hamalainen [Tue, 24 Jan 2012 17:28:50 +0000 (17:28 +0000)]
Dynamic Paint:
* Fix: Substep update failed if brush was parented to a canvas vertex. Now substeps are ignored in such case.
* Fix: Wave "open borders" option didn't work for image sequence format.
* Fixed a possible crash after changing surface format to image sequence.
* Some code cleanup.

7 years agoBrightness/Contrast Node for Cycles
Dalai Felinto [Tue, 24 Jan 2012 16:32:31 +0000 (16:32 +0000)]
Brightness/Contrast Node for Cycles

Contrast helps to adjust IBL (HDR images used for background lighting).
Note: In the UI we are caling it Bright instead of Brightness. This copy what Blender composite is doing.
Note2: the algorithm we are using produces pure black when contrast is 100. I'm not a fan of that, but it's a division by zero. I would like to look at other algorithms (what gimp does for example). But that would be only after 2.62.

7 years agocomment unused assignment.
Campbell Barton [Tue, 24 Jan 2012 15:51:44 +0000 (15:51 +0000)]
comment unused assignment.

7 years agoquiet some warnings & (possible/unlikely error)
Campbell Barton [Tue, 24 Jan 2012 15:37:50 +0000 (15:37 +0000)]
quiet some warnings & (possible/unlikely error)

7 years agoNew fix for [#29940] Stretch To constraint breaks scaling in Transform constraint...
Bastien Montagne [Tue, 24 Jan 2012 13:17:32 +0000 (13:17 +0000)]
New fix for [#29940] Stretch To constraint breaks scaling in Transform constraint, previous one caused bug [#29962] linked objects not correct on r4361, should be fixed now.

Org code was working with isotropic scaling, but when scaling only one axis, it was broken. First fix just disabled completly scale handling. This version only takes into account scaling along local Y axis, as this is the only one affecting that constraint!

Sorry for the mistake, hope this time it will be ok.

7 years agoFix #29975: Track Preview color channels not filtering correctly
Sergey Sharybin [Tue, 24 Jan 2012 12:25:03 +0000 (12:25 +0000)]
Fix #29975: Track Preview color channels not filtering correctly

Typo in checking bitflags

7 years agoBugfix: Circle-select in Pose Mode disregarded layer visibility, selecting
Joshua Leung [Tue, 24 Jan 2012 08:43:39 +0000 (08:43 +0000)]
Bugfix: Circle-select in Pose Mode disregarded layer visibility, selecting
invisible bones too

7 years agoFix #29965: Crash: Memory psys node array: end corrupt
Sergey Sharybin [Tue, 24 Jan 2012 08:43:17 +0000 (08:43 +0000)]
Fix #29965: Crash: Memory psys node array: end corrupt

Original indices from right operand were used in boolean result derived mesh
which lead to crash if right operand has got more entities (faces/edges/vertices)
than left operand.

7 years agoAdd the .Identity() classmethod to mathutils matrices. This allows the user
Andrew Hale [Tue, 24 Jan 2012 01:56:44 +0000 (01:56 +0000)]
Add the .Identity() classmethod to mathutils matrices. This allows the user
to create an identity matrix of a specific size without having to specify
all the values in the matrix and then use the .identity() method.

7 years agocommented smoke collision derived mesh,
Campbell Barton [Tue, 24 Jan 2012 01:21:43 +0000 (01:21 +0000)]
commented smoke collision derived mesh,

was storing its own copy of the collision mesh but never using it.

7 years agoMisc picky edits to UI messages.
Bastien Montagne [Mon, 23 Jan 2012 22:57:46 +0000 (22:57 +0000)]
Misc picky edits to UI messages.

7 years agorst bge touch ups: making the title of the examples slightly more noticeable
Dalai Felinto [Mon, 23 Jan 2012 19:53:23 +0000 (19:53 +0000)]
rst bge touch ups: making the title of the examples slightly more noticeable
-  it's still not correct, comparing to the other examples, but at least it looks okish.
-  fixed some small typos

7 years agoBLI_array_reserve from bmesh.
Campbell Barton [Mon, 23 Jan 2012 19:42:22 +0000 (19:42 +0000)]
BLI_array_reserve from bmesh.

7 years agoFix #29970: Crash trying to track disabled marker
Sergey Sharybin [Mon, 23 Jan 2012 19:32:00 +0000 (19:32 +0000)]
Fix #29970: Crash trying to track disabled marker

7 years agoFix compilation error caused by code cleanup
Sergey Sharybin [Mon, 23 Jan 2012 17:49:56 +0000 (17:49 +0000)]
Fix compilation error caused by code cleanup

7 years agoCarve booleans: corrected copyright header
Sergey Sharybin [Mon, 23 Jan 2012 17:44:19 +0000 (17:44 +0000)]
Carve booleans: corrected copyright header

7 years agoCarve booleans: code and style cleanup
Sergey Sharybin [Mon, 23 Jan 2012 17:44:05 +0000 (17:44 +0000)]
Carve booleans: code and style cleanup

7 years agoFix #29934: New Carve library can't execute boolean operations in some cases
Sergey Sharybin [Mon, 23 Jan 2012 17:43:41 +0000 (17:43 +0000)]
Fix #29934: New Carve library can't execute boolean operations in some cases

Issue was caused by left boolean operand consist of several intersecting manifolds
which make Carve triangulator confused and which can't be resolved in general case.
Added mesh pre-processing before actual applying boolean operator on it. This
preprocessing applies union operation on intersecting manifolds of the same object
so intersection edge loop with second object wouldn't confuse tesselator and correct
result would be returned.
Detecting of intersecting manifolds is based on AABB intersection check which leads
to some extra union operation called, but it's possible to speed things up from
Carve side so union operation of two not intersecting meshes would work faster.
Additional condition for running union for manifold is this manifolds intersects
AABB of second operand, so mesh topology wouldn't be changed at all in areas
where there's definitely no intersection between operands. It might be improved
so only manifolds which actually intersects second operand would be joined
together, but it'll slow things down a bit and prefer to do it only if it'll
be really a problem.

Additional change is fixed memory leak when boolean operation fails to run -
it was missed "delete" call if exception happens in Carve library.

From side effects of this change might be named boolean operation between
suzanne and another object: suzanne is consist of three intersecting open
manifolds, so this new meshes preprocessing leads to missed eyes in result
because of failure of merging two open manifolds. Don't think making suzanne
work for all setups should really be a goal, it's a bit crappy mesh for CSG
algorithms.

7 years agoIn order to maintain consistency with other uses of .remove(), these functions will...
Andrew Hale [Mon, 23 Jan 2012 13:29:29 +0000 (13:29 +0000)]
In order to maintain consistency with other uses of .remove(), these functions will be removed and reimplemented after the BMesh merge.

The main issue in an implementation of these functions is the need to constantly edit the vertex array and subsequently update the face and edge arrays.

7 years agoFix for compilation error when using scons and carve is disabled
Sergey Sharybin [Mon, 23 Jan 2012 08:48:52 +0000 (08:48 +0000)]
Fix for compilation error when using scons and carve is disabled

7 years agomodifier Apply as Shape is now Apply as Shape Key. Was confusing some users
Daniel Salazar [Mon, 23 Jan 2012 03:13:55 +0000 (03:13 +0000)]
modifier Apply as Shape is now Apply as Shape Key. Was confusing some users

7 years agoCloth: Add "velocity damping" to damping options. This will help with the "cloth...
Daniel Genrich [Mon, 23 Jan 2012 01:35:14 +0000 (01:35 +0000)]
Cloth: Add "velocity damping" to damping options. This will help with the "cloth wobbling" problem which accurs quite often when having animated characters with cloth.

7 years agoFix for "[#29911] Crash on reading BL_ActionActuator.channelNames"
Mitchell Stokes [Sun, 22 Jan 2012 23:15:35 +0000 (23:15 +0000)]
Fix for "[#29911] Crash on reading BL_ActionActuator.channelNames"

The crash occurred when an action actuator was attached to a non-armature object because objects that aren't armatures do not have pose data. A NotImplementedError is now raised if someone tries to access any of the following with an action actuator attached to a non-armature object:

BL_ActionActuator.channelNames
BL_ActionActuator.getChannel()
BL_ActionActuator.setChannel()

7 years agoCycles UI:
Thomas Dinges [Sun, 22 Jan 2012 23:13:24 +0000 (23:13 +0000)]
Cycles UI:
* Add World ID Block to World Shader Nodes.

7 years agoCycles Textures:
Thomas Dinges [Sun, 22 Jan 2012 22:59:21 +0000 (22:59 +0000)]
Cycles Textures:
* Remove the "Use nodes" button, the TextureOutput node was never ported to trunk from the cycles branch.

7 years agoCycles UI:
Thomas Dinges [Sun, 22 Jan 2012 22:43:21 +0000 (22:43 +0000)]
Cycles UI:
* Use full width for the world sample as lamp properties

7 years agoOcean Modifier UI fixes:
Thomas Dinges [Sun, 22 Jan 2012 22:30:45 +0000 (22:30 +0000)]
Ocean Modifier UI fixes:
* Modifier Icon was missing in the outliner
* Fluid icon was used in the rna struct, fixed

Note: Ocean uses the Wave modifier icon atm, if we find a better one, this can be changed.

7 years agoCommitting patch "[#27676] Change window size/resolution in realtime" by me.
Mitchell Stokes [Sun, 22 Jan 2012 20:25:25 +0000 (20:25 +0000)]
Committing patch "[#27676] Change window size/resolution in realtime" by me.

Description:
This patch allows the user to change the size of the window (or the resolution in fullscreen mode) using the new bge.render.setWindowSize() method. This only works in the Blenderplayer since it doesn't make a whole lot of sense for the embedded player.

7 years agorestrict stitching of same island uvs to only midpoint, without snapping case
Antony Riakiotakis [Sun, 22 Jan 2012 20:01:33 +0000 (20:01 +0000)]
restrict stitching of same island uvs to only midpoint, without snapping case

7 years agominor edit for operator error macro so it can return different values.
Campbell Barton [Sun, 22 Jan 2012 19:52:41 +0000 (19:52 +0000)]
minor edit for operator error macro so it can return different values.

7 years agoerror in outliner parent patch - was using set string on an enum property.
Campbell Barton [Sun, 22 Jan 2012 18:59:06 +0000 (18:59 +0000)]
error in outliner parent patch - was using set string on an enum property.

7 years agoAdd weight preview to WeightVG modifiers, and first, simple/basic refactor of how...
Bastien Montagne [Sun, 22 Jan 2012 17:54:23 +0000 (17:54 +0000)]
Add weight preview to WeightVG modifiers, and first, simple/basic refactor of how modifiers can generate preview.

User side:
* Preview for DynamicPaint should keep the same behavior (for now). Weight preview should be somawhat quicker, though.
* Preview for WeightVG modifiers is only active in WeightPaint mode, and if the affected vgroup is the active one.
* Last active preview modifier in stack wins!

Note: that modifier preview topic is yet to be further refined, quite raw/incomplete for now.

Dev side:
* In draw code, renamed DRAW_DYNAMIC_PAINT_PREVIEW flag to DRAW_MODIFIERS_PREVIEW
* Removed use of MOD_DPAINT_PREVIEW_READY in DynamicPaint code (seems unecessary, and if it was, should be of more general scope).
* Added eModifierTypeFlag_UsesPreview to ModifierTypeFlag, for modifiers that can generate some preview data.
* Added three new modifier funcs, to handle preview modifiers in draw code / mod stack.
* For weights preview: added the generic DM_update_weight_mcol func, which can update WEIGHT_MCOL layer with either a given array of weights (currently used by DynamicPaint only), or from current active vgroup(s).

So now, draw code is fully generic (i.e. no more modifier-type checking in it). Mod stack code is generic to some extent, but will need more work.

7 years agoQuiet warnings in text editor
Campbell Barton [Sun, 22 Jan 2012 17:26:56 +0000 (17:26 +0000)]
Quiet warnings in text editor

7 years agouse inline BLI_math functions for dot product and length calculation.
Campbell Barton [Sun, 22 Jan 2012 17:20:37 +0000 (17:20 +0000)]
use inline BLI_math functions for dot product and length calculation.