6 years agoCycles Preview Blend:
Thomas Dinges [Mon, 28 Jan 2013 19:15:47 +0000 (19:15 +0000)]
Cycles Preview Blend:
* Added UV Mapping for objects, so Image textures will work.

6 years agoFix [#34023] r54146 breaks name-display of default "UI_UL_list"
Bastien Montagne [Mon, 28 Jan 2013 18:46:04 +0000 (18:46 +0000)]
Fix [#34023] r54146 breaks name-display of default "UI_UL_list"

draw_item *is* optional (it then uses default C function), even though there is not much sense to register a class without it, except for our default UI_UL_list!

6 years agoScons:
Thomas Dinges [Mon, 28 Jan 2013 17:49:15 +0000 (17:49 +0000)]
* Fix for new cycles_preview.blend

6 years agoCycles: preview rendering support for world/material/lamp.
Brecht Van Lommel [Mon, 28 Jan 2013 17:37:51 +0000 (17:37 +0000)]
Cycles: preview rendering support for world/material/lamp.

Patch by Sergey, .blend by Thomas and some further tweaks by me.

Still to solve later: allow external engines to specify own preview .blend, for
now the code here is doing too much magic hacking on the preview scene still.

6 years agoFix for RNA function flag conflict: FUNC_USE_REPORTS was using same bits as FUNC_REGI...
Lukas Toenne [Mon, 28 Jan 2013 13:33:40 +0000 (13:33 +0000)]
Fix for RNA function flag conflict: FUNC_USE_REPORTS was using same bits as FUNC_REGISTER. Previously errors resulting from this could go unnoticed because of broken FUNC_REGISTER test (all functions considered optional). Watch this in future ...

6 years agoFix #34004: crash when canceling ongoing render with scene strip
Sergey Sharybin [Mon, 28 Jan 2013 13:29:10 +0000 (13:29 +0000)]
Fix #34004: crash when canceling ongoing render with scene strip

Issue was caused by recursive call of RE_BlenderFrame. Solved by
reshuffling image pool init/free in do_render_all_options.

Should be harmless, but doublecheck on this is welcome.

6 years agoFix for wrong icons buffer initialization happens for cards
Sergey Sharybin [Mon, 28 Jan 2013 12:57:56 +0000 (12:57 +0000)]
Fix for wrong icons buffer initialization happens for cards
without NPOT support. Was wrong stride used for memcpy leading
to wrong memory writes in def_internal_icon.

It's a regression since matcap commit.

Should fix the following reports:
- #33993: Crash on Blender startup (Vista x32)
- #33996: Latest build crashes on win xp

6 years agofix [#34018] Delete Edge Loop undo works not als expected.
Campbell Barton [Mon, 28 Jan 2013 12:42:38 +0000 (12:42 +0000)]
fix [#34018] Delete Edge Loop undo works not als expected.

6 years agoFix for the is_registered_optional property of RNA functions, now only returns true...
Lukas Toenne [Mon, 28 Jan 2013 12:34:18 +0000 (12:34 +0000)]
Fix for the is_registered_optional property of RNA functions, now only returns true for actually optional functions.

6 years agofix for rigid body assuming active object would be selected, also don't check length...
Campbell Barton [Mon, 28 Jan 2013 12:24:25 +0000 (12:24 +0000)]
fix for rigid body assuming active object would be selected, also don't check length of selected objects in poll function (getting and throwing away object selection array on every redraw is no good).

6 years agoFix for errors caused by fixing RNA function register flags. Default UIList class...
Lukas Toenne [Mon, 28 Jan 2013 12:18:00 +0000 (12:18 +0000)]
Fix for errors caused by fixing RNA function register flags. Default UIList class now has a dummy draw_item callback. Panel draw_header is now optional (most panel classes don't define it).

6 years agoFix for RNA FUNC_REGISTER/FUNC_REGISTER_OPTIONAL flags: The test in bpy validation...
Lukas Toenne [Mon, 28 Jan 2013 12:17:49 +0000 (12:17 +0000)]
Fix for RNA FUNC_REGISTER/FUNC_REGISTER_OPTIONAL flags: The test in bpy validation of classes actually always passed for mandatory functions. This only worked since they all use fallback default implementations internally.

6 years agouse more conventional names in rigid body script.
Campbell Barton [Mon, 28 Jan 2013 12:15:50 +0000 (12:15 +0000)]
use more conventional names in rigid body script.

6 years agorigidbody: Don't show dialog for "Connect" operator
Sergej Reich [Mon, 28 Jan 2013 11:56:01 +0000 (11:56 +0000)]
rigidbody: Don't show dialog for "Connect" operator

Use redo last panel to change settings now.
This is more in line with how the rest of blender operates.

Also fix tootip

6 years agoadd mathutils function to intersect 2 circles. Converted to C from a python script...
Campbell Barton [Mon, 28 Jan 2013 11:52:17 +0000 (11:52 +0000)]
add mathutils function to intersect 2 circles. Converted to C from a python script by Alex Fraser.

6 years agoFix for a nasty glicth found by Irie Shinsuke in Freestyle branch.
Bastien Montagne [Mon, 28 Jan 2013 08:58:20 +0000 (08:58 +0000)]
Fix for a nasty glicth found by Irie Shinsuke in Freestyle branch.

Headerless panels are not supposed to be closed ever. But if user saves a blend with a stardard panel closed, then dev decides to make this panel headerless, when user open again its blend, the panel is closed and has no more header, so it becomes invisible!

This commit simply checks, at draw time, that a headerless panel is never closed (and repoen it if necessary)!

6 years agoadd collision masks to copy-game-physics settings. (another GGJ missing feature :) )
Campbell Barton [Mon, 28 Jan 2013 06:56:47 +0000 (06:56 +0000)]
add collision masks to copy-game-physics settings. (another GGJ missing feature :) )

6 years ago[BGE Controllers] reverting my own commits #54103 and #54102, no longer necessary...
Dalai Felinto [Mon, 28 Jan 2013 06:44:06 +0000 (06:44 +0000)]
[BGE Controllers] reverting my own commits #54103 and #54102, no longer necessary after rev/fix #54136

6 years agoBGE Py API docs: correct references to bge.keys
Campbell Barton [Mon, 28 Jan 2013 06:39:23 +0000 (06:39 +0000)]
BGE Py API docs: correct references to bge.keys

6 years agofix for usability issue - navmesh would create the new object on the first layer...
Campbell Barton [Mon, 28 Jan 2013 06:34:13 +0000 (06:34 +0000)]
fix for usability issue - navmesh would create the new object on the first layer, rather then the layer of the source object(s).

6 years agofix annoyance noticed at the global-game-jam, adding controllers would remember previ...
Campbell Barton [Mon, 28 Jan 2013 06:06:55 +0000 (06:06 +0000)]
fix annoyance noticed at the global-game-jam, adding controllers would remember previous name. Would add 'And' controllers and name them 'Python1' for eg.

6 years agominor optimization - don't do double lookups on vertex mask layer for vert_mask_get...
Campbell Barton [Mon, 28 Jan 2013 04:10:47 +0000 (04:10 +0000)]
minor optimization - don't do double lookups on vertex mask layer for vert_mask_get(), vert_mask_set().

add an assert because if the mesh is in an invalid state the mask layer can exist but the mask pointer still be NULL (noticed this while looking into a different bug).

6 years agoMade the tooltip for rigid body constraint "Connect" operator clearer
Joshua Leung [Mon, 28 Jan 2013 02:48:19 +0000 (02:48 +0000)]
Made the tooltip for rigid body constraint "Connect" operator clearer

Previously it wasn't clear what it was supposed to be doing, or what was
required for it to work.
TODO: figure out why the operator redo settings panel won't work. The workflow
here is still a bit clunky.

6 years agostyle cleanup: also remove unneeded NULL check.
Campbell Barton [Mon, 28 Jan 2013 01:59:59 +0000 (01:59 +0000)]
style cleanup: also remove unneeded NULL check.

6 years agovisualkey_can_use() now uses proper booleans
Joshua Leung [Mon, 28 Jan 2013 01:41:15 +0000 (01:41 +0000)]
visualkey_can_use() now uses proper booleans

6 years agoBGE Profile : visual feedback bars and improvements
Dalai Felinto [Mon, 28 Jan 2013 01:26:36 +0000 (01:26 +0000)]
BGE Profile : visual feedback bars and improvements

You can see a screenshot of the funcionality here:

This patch creates a bar-like graph to quickly allow the game dev to see the performance changes.
Also it changes the font to monospace (too allow ' ' padding) and reduced shadow border to
match the blenderplayer one.

Patch finalized and commited at Global Game Jam Vancouver (last one, time to sleep forever now)

6 years agoVisual Keyframing now works for rigid body objects too
Joshua Leung [Mon, 28 Jan 2013 01:02:14 +0000 (01:02 +0000)]
Visual Keyframing now works for rigid body objects too

6 years agoActivate partial redraw of non-power of two textures. This looks like
Antony Riakiotakis [Sun, 27 Jan 2013 20:26:18 +0000 (20:26 +0000)]
Activate partial redraw of non-power of two textures. This looks like
it's working as expected out of the box. I hope nothing breaks.

6 years agoBGE UI: removing "use_occlusion_culling" from the ui
Dalai Felinto [Sun, 27 Jan 2013 19:57:47 +0000 (19:57 +0000)]
BGE UI: removing "use_occlusion_culling" from the ui
(and marking rna as deprecated)

I talked with Benoit Bolsee and Mitchell Stokes and they both agreed that
the feature should be removed.

In case someone was actually using it the rna is still available. But next
release we remove both the rna, the DNA and the flag in the code.

I did a simple benchmark with tons of cubes, and the DBVT culling (use_occlusion_culling=True)
always perform better than when it's off. Even when no occluder objects are in the scene.

6 years agoBunch of fixes for UI messages.
Bastien Montagne [Sun, 27 Jan 2013 18:14:24 +0000 (18:14 +0000)]
Bunch of fixes for UI messages.

Also generate rigid body constraint types in py bullet code from RNA enum values (simpler than having to sync the code when something is changed here!).

Side note: RNA API about icons still needs to expose icons for enum values, and conversion funcs between icon_name and icon_value!

6 years agoPack UI:
Ton Roosendaal [Sun, 27 Jan 2013 17:20:08 +0000 (17:20 +0000)]
Pack UI:

Oops! So there was an Unpack button, hidden in the Nkey properties of Image window.
This was drawn next to greyed-out buttons, didn't notice it well.

I also now found the unpack() menu in editors/util, and there's an Image unpack op.
Also the RNA api has an unpack!

Will remove the generic unpack op, and add a sound and vfont unpack instead.

6 years agoFix drivers and shape keys not handling subframes / frame mapping properly.
Brecht Van Lommel [Sun, 27 Jan 2013 16:45:00 +0000 (16:45 +0000)]
Fix drivers and shape keys not handling subframes / frame mapping properly.

Change Scene.frame_set so that it ensures subframe in range [0,1[ as Blender
expects, otherwise some things like physics point cache lookups don't get
evaluated properly.

6 years agoWindows compile fix:
Thomas Dinges [Sun, 27 Jan 2013 15:12:52 +0000 (15:12 +0000)]
Windows compile fix:
* r54117 broke Windows, __func__ not declared.

6 years agoVery old todo: Packed file UI
Ton Roosendaal [Sun, 27 Jan 2013 14:28:45 +0000 (14:28 +0000)]
Very old todo: Packed file UI

- The "ID" buttons (for browse images, for example) now show a Pack icon, for packed
  Images. Using this button allows unpack.

- Pack and unpack operations now give a Info report on what happened.

- Not restored yet: option to set "AutoPack".

6 years agoremove redundant temp pointer assignment in AVI_write_frame.
Campbell Barton [Sun, 27 Jan 2013 12:03:20 +0000 (12:03 +0000)]
remove redundant temp pointer assignment in AVI_write_frame.

6 years agomake MEM_reallocN and MEM_recallocN behave as libc's realloc() - alloc when receiving...
Campbell Barton [Sun, 27 Jan 2013 11:20:50 +0000 (11:20 +0000)]
make MEM_reallocN and MEM_recallocN behave as libc's realloc() - alloc when receiving a NULL value.

6 years agoOperators name "cleanup"
Dalai Felinto [Sun, 27 Jan 2013 07:23:58 +0000 (07:23 +0000)]
Operators name "cleanup"
The operator names all show up in the Search button. As such is nicer if they
can all have the main words capitalized.

e.g. "Snap strips" should be "Snap Strips"
     "Copy to clipboard" should be "Copy to Clipboard"

This was done with a mix of bash tools, regex, and manual work because I'm too rushed into regex :)

+ fix bge stereo eye separation tooltip

6 years agoBGE bugfix: Material initial object color working in the game
Dalai Felinto [Sat, 26 Jan 2013 23:52:55 +0000 (23:52 +0000)]
BGE bugfix: Material initial object color working in the game
The object color option in the materials always worked, however the initial color of the object
was never passed to the game.

We are now passing it only, only when the object's mesh has a material that has ((shade_flags & OB_COLOR)).
There reason to not always set the object color is probably due to performance (the m_bUseObjectColor
flag in KX_GameObject). This patch still respect that.

Bug report from Mike Pan, as part of our book nitty-gritties review work.
Bugfix during Vancouver Global Game Jam :)

6 years agoFix [#34005] blender will close immediately in debug mode on deleting objects
Sergej Reich [Sat, 26 Jan 2013 17:38:45 +0000 (17:38 +0000)]
Fix [#34005] blender will close immediately in debug mode on deleting objects

Was silly mistake from rigidbody merge, base was used after it's been

Now don't free base in BKE_scene_base_remove() and rename it to

6 years agoCheck for deletion before moving vert in dyntopo collapse edge
Nicholas Bishop [Sat, 26 Jan 2013 17:19:21 +0000 (17:19 +0000)]
Check for deletion before moving vert in dyntopo collapse edge

Fixes [#33964] Dyntopo crash with edge collapse + undo

6 years agoRevert r54058, caused crash when adding paritcles in particle edit mode
Sergej Reich [Sat, 26 Jan 2013 12:30:44 +0000 (12:30 +0000)]
Revert r54058, caused crash when adding paritcles in particle edit mode

MEM_recallocN() doesn't allocate memory when used on a null pointer.

Just revert commit since there is no real benefit to using
MEM_recallocN() in this case.

6 years agoPorting over hotkeys for adding rigidbody objects (from original branch)
Joshua Leung [Sat, 26 Jan 2013 05:34:06 +0000 (05:34 +0000)]
Porting over hotkeys for adding rigidbody objects (from original branch)

* Ctrl-R          = Add Active
* Ctrl-Shift-R = Add Passive
* Ctrl-Alt-R    = Remove

6 years agoMotion Path calculations for objects now takes rigidbodies sim effects into
Joshua Leung [Sat, 26 Jan 2013 05:28:58 +0000 (05:28 +0000)]
Motion Path calculations for objects now takes rigidbodies sim effects into

6 years agoreal fix for Logic Bricks UI smart controller (#33746)
Dalai Felinto [Sat, 26 Jan 2013 03:30:21 +0000 (03:30 +0000)]
real fix for Logic Bricks UI smart controller (#33746)
previous commit (54102) actually reintroduces an old bug where Blender sigfaults when
the sensor and controllers are not from the active object.

The real fix for report #33746 is to clear the "object" property after the operator ran.
I'm not sure why when I call the operator from command line the property is cleared, but not
when I called it from C. Either way all should be working now.

6 years agobugfix for 33746 Unable to add Controller to objects correctly
Dalai Felinto [Sat, 26 Jan 2013 02:46:07 +0000 (02:46 +0000)]
bugfix for 33746 Unable to add Controller to objects correctly
(live from the global game jam Vancouver ;)

6 years agoFix [#33997] Units Scale in Metric mode displays wrong face area.
Bastien Montagne [Fri, 25 Jan 2013 21:21:38 +0000 (21:21 +0000)]
Fix [#33997] Units Scale in Metric mode displays wrong face area.

Also now display nice "area" units (maybe using "length" units was a perf matter, but anyway, you can't have more than a few tens of values displayed at a time, after that they become unreadable). Easy to undo anyway if we really want to keep ugly "10m" as area display!

6 years agoSmall tweak: Allow DPI for UI to go up 144, exactly double size of 72.
Ton Roosendaal [Fri, 25 Jan 2013 15:44:22 +0000 (15:44 +0000)]
Small tweak: Allow DPI for UI to go up 144, exactly double size of 72.
That makes all default icons draw in full unfiltered 32x32 pixel glory!

6 years agoFix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac.
Brecht Van Lommel [Fri, 25 Jan 2013 13:51:49 +0000 (13:51 +0000)]
Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac.

6 years agoBugfix #33989
Ton Roosendaal [Fri, 25 Jan 2013 10:17:06 +0000 (10:17 +0000)]
Bugfix #33989

Transparent region drawing and blend broke by commit 53919 5 days ago.
This commit reverts the change.

The claim in previous commit "edited code for readability" is quite
disputable :) The error is hard to notice even.

I also like to emphasize that people should check with owners for code
before committing changes! Cleaning code is first a job for maintainers.

6 years agoIncreasing dilate erode number of steps.
Monique Dewanchand [Fri, 25 Jan 2013 09:57:17 +0000 (09:57 +0000)]
Increasing dilate erode number of steps.

6 years agocommitted patch [#33972] dilate/erode optimization
Monique Dewanchand [Fri, 25 Jan 2013 09:47:28 +0000 (09:47 +0000)]
committed patch [#33972] dilate/erode optimization

this patch optimizes the dilate/erode step method (hopefully without any functional change),
making its speed not depend on the distance anymore.

Couldn't detect funtional changes so committing. Haven't tested for speed gain.

 * credits to erwin94 David M

6 years agorigidbody: Improve add/remove operators
Sergej Reich [Fri, 25 Jan 2013 06:26:38 +0000 (06:26 +0000)]
rigidbody: Improve add/remove operators

Now all add/remove operators for rigid body objects and constraints
automatically add objects to the appropriate groups and create groups if they
don't exist yet.

This makes handling rigid bodies easier but doesn't take away functionality.
If users want to handle groups manually they just need to create them before
adding any objects.

The previous behaviour was confusing and was even considered to be a bug since
clicking on rigid body in the physics tab seemed to do nothing.

6 years agoscons: Add missing WITH_BULLET define
Sergej Reich [Fri, 25 Jan 2013 05:02:36 +0000 (05:02 +0000)]
scons: Add missing WITH_BULLET define

Fixes [#33980] Ridid Body crashes when changing Collision shape with playback
as well as several other rigid body bugs wtih scons.

6 years agoFix cycles crash that happened with mesh emission and diffuse/glossy ray
Brecht Van Lommel [Fri, 25 Jan 2013 02:00:57 +0000 (02:00 +0000)]
Fix cycles crash that happened with mesh emission and diffuse/glossy ray
visibility disabled on some objects.

6 years agoheader cleanup, include BLI before BKE, also use bool for ntreeShaderExecTree
Campbell Barton [Thu, 24 Jan 2013 21:57:13 +0000 (21:57 +0000)]
header cleanup, include BLI before BKE, also use bool for ntreeShaderExecTree

6 years agoDo not redefine math functions for floats if compiler complies with C99 or POSIX...
Sv. Lockal [Thu, 24 Jan 2013 20:54:12 +0000 (20:54 +0000)]
Do not redefine math functions for floats if compiler complies with C99 or POSIX.1-2001

This is useful for gcc which does not define sqrtf/powf/... functions with preprocessor and therefore always used sqrt/pow/...
Float functions are generally 20-50% faster than their equivalents for double type.

6 years agoDisabled commit that was rendering Blender Internal for Cycles nodes.
Ton Roosendaal [Thu, 24 Jan 2013 19:31:44 +0000 (19:31 +0000)]
Disabled commit that was rendering Blender Internal for Cycles nodes.

Apparently Material nodes allow a mix of Cycles and BI Materials. Nifty!
I should read more docs, like this cool tutorial:

6 years agoLogic mistake in previous commit, broke node materials for Internal render.
Ton Roosendaal [Thu, 24 Jan 2013 18:56:04 +0000 (18:56 +0000)]
Logic mistake in previous commit, broke node materials for Internal render.

6 years agoPut back minimum window sizes on 320x240.
Ton Roosendaal [Thu, 24 Jan 2013 17:57:38 +0000 (17:57 +0000)]
Put back minimum window sizes on 320x240.
This didnt work well with making blender areas into windows.

Real fix: check such minimums based on what's in the window itself... or just
make scaling work flawless.

6 years agoFix #33953: blender crash after few steps with .exr image in compositor
Sergey Sharybin [Thu, 24 Jan 2013 17:21:22 +0000 (17:21 +0000)]
Fix #33953: blender crash after few steps with .exr image in compositor

Issue was caused by FILE multilayer ImBuf sharing buffers with render
result, and SEQUENCE multilayer ImBufs duplicating buffers. Which is
nice by it's own. But, changing image source wouldn't remove any loaded
image buffers, meaning if you've got loaded FILE multilayers they'll
likely became invalid.

That behavior of handling multilayers on changing source was done as
a fix for #24976, which is now actually not needed (removing check
for multilayer doesn't change behavior at all).

Just to be sure added check to RNA, so signal wouldn't be fired if
source wasn't actually changed form a menu.

6 years agoFix/workaround for cycles crash when enabling it for preview renders.
Brecht Van Lommel [Thu, 24 Jan 2013 16:20:43 +0000 (16:20 +0000)]
Fix/workaround for cycles crash when enabling it for preview renders.

Problem is that preview render database is being used, but the new datablock
function still uses G.main, and the mesh was being added to one database but
(attempted to be) removed from another. The proper fix would get rid of the
globals here, will look into that later.

6 years agoUsability
Ton Roosendaal [Thu, 24 Jan 2013 16:11:07 +0000 (16:11 +0000)]

- Cycles materials now render in Blender Internal too, skipping the nodes.
  Not very useful, but at least things then show up on renders and in

- Node editor: if wrong shader nodes are in a tree, they draw with thene
  color RED ALERT headers now. (Switching render engine will show it).

6 years agouse bool for new code.
Campbell Barton [Thu, 24 Jan 2013 14:48:08 +0000 (14:48 +0000)]
use bool for new code.

6 years agofix for mesh-cache modifier deform-integration used with axis-flipping would fail.
Campbell Barton [Thu, 24 Jan 2013 14:36:02 +0000 (14:36 +0000)]
fix for mesh-cache modifier deform-integration used with axis-flipping would fail.

6 years agoTiles highlight shall work fine with border render now
Sergey Sharybin [Thu, 24 Jan 2013 13:55:04 +0000 (13:55 +0000)]
Tiles highlight shall work fine with border render now

Before it was some offset from actual tile pixels.

6 years agoFixed for strict compiler flags
Sergey Sharybin [Thu, 24 Jan 2013 13:43:37 +0000 (13:43 +0000)]
Fixed for strict compiler flags

6 years agoNew 'X' icon in search buttons sometimes overlapped text, needs extra space.
Ton Roosendaal [Thu, 24 Jan 2013 13:02:00 +0000 (13:02 +0000)]
New 'X' icon in search buttons sometimes overlapped text, needs extra space.

6 years agofix for setting RegionView3D.view_matrix
Campbell Barton [Thu, 24 Jan 2013 11:54:11 +0000 (11:54 +0000)]
fix for setting RegionView3D.view_matrix

6 years agoFinal memory fix for (not really a leak, but unfreed memory...
Bastien Montagne [Thu, 24 Jan 2013 11:38:17 +0000 (11:38 +0000)]
Final memory fix for (not really a leak, but unfreed memory at end of program - I thought addons were unregistered at quit time...).

6 years agouse inline functions for subsurf MVert,MEdge mesh array functions, also some include...
Campbell Barton [Thu, 24 Jan 2013 11:28:26 +0000 (11:28 +0000)]
use inline functions for subsurf MVert,MEdge mesh array functions, also some include cleanup for scons/cmake.

6 years agoArmature rigging:
Ton Roosendaal [Thu, 24 Jan 2013 11:21:40 +0000 (11:21 +0000)]
Armature rigging:
Added more clear warning print for cases when a Proxy cannot be resolved.

6 years agofix for missing initialization of vert data in ccgDM_copyFinalVertArray
Campbell Barton [Thu, 24 Jan 2013 09:36:22 +0000 (09:36 +0000)]
fix for missing initialization of vert data in ccgDM_copyFinalVertArray

6 years agopatch [#33969] fix for [#33968] Blenders Custom Project File Generator for QtCreator...
Campbell Barton [Thu, 24 Jan 2013 08:59:48 +0000 (08:59 +0000)]
patch [#33969] fix for [#33968] Blenders Custom Project File Generator for QtCreator fails
from Philipp Oeser (lichtwerk)

6 years agoFix #33975: Crash when reloading texture
Sergey Sharybin [Thu, 24 Jan 2013 08:49:48 +0000 (08:49 +0000)]
Fix #33975: Crash when reloading texture

Two issues in texture_changed:
- Missing NULL check for material (slot could be empty)
- Materials could be linked to object, added special check for this

6 years agofix for G,G causing vertex slide in UV/Image window, also comment unused defines...
Campbell Barton [Thu, 24 Jan 2013 08:49:40 +0000 (08:49 +0000)]
fix for G,G causing vertex slide in UV/Image window, also comment unused defines/enums.

6 years agoFix threading issues of viewport rendering when using movies/generated images
Sergey Sharybin [Thu, 24 Jan 2013 08:14:20 +0000 (08:14 +0000)]
Fix threading issues of viewport rendering when using movies/generated images

Issue was caused by the fact that guarded allocator is not thread-safe and
generated images/movies could allocate memory when loading pixels to Cycles.

Currently solved by switching memory allocator to using mutex lock (the same
as sued for jobs) when viewport rendering is used.

Nicer solution would be to make guarded allocator thread-safe by using atomic
operations and lock-free lists, but that's more serious change.

6 years agoAdded some code which helps troubleshooting issues caused by
Sergey Sharybin [Thu, 24 Jan 2013 08:14:05 +0000 (08:14 +0000)]
Added some code which helps troubleshooting issues caused by
non-threadsafe usage of guarded allocator.

Also added small chunk of code to check consistency of begin/end
threaded malloc.

All this additional checks are commented and wouldn't affect on
builds, however found them helpful to troubleshoot issues so
decided to commit it to SVN.

6 years agocode cleanup: minor edits to mesh-cache formatting.
Campbell Barton [Thu, 24 Jan 2013 05:54:17 +0000 (05:54 +0000)]
code cleanup: minor edits to mesh-cache formatting.

6 years agoRemove dynamic-topology flag from mesh when entering sculpt mode
Nicholas Bishop [Thu, 24 Jan 2013 04:33:29 +0000 (04:33 +0000)]
Remove dynamic-topology flag from mesh when entering sculpt mode

This will be enabled if the file was saved with dynamic topology on,
but we don't automatically re-enter dynamic-topology mode when loading
a file so remove the flag.

Fixes bug [#33956]

6 years agoadd 'deform - integrate' option to mesh-cache,
Campbell Barton [Thu, 24 Jan 2013 04:02:30 +0000 (04:02 +0000)]
add 'deform - integrate' option to mesh-cache,
This means the deformation on the input to the modifier can be re-applied ontop of the mesh cache.

In practice this is most useful for using corrective shape-keys with mesh-cache.

6 years agorigidbody: Fix [#33971] Bullet Physics crash + patch
Sergej Reich [Thu, 24 Jan 2013 03:49:30 +0000 (03:49 +0000)]
rigidbody: Fix [#33971] Bullet Physics crash + patch

BKE_rigidbody_aftertrans_update() can be called before rigid body is
validated so check before updating physics_object.

Thanks to Antony Riakiotakis (psy-fi) for the initial patch.

6 years agoBugfix [#33974] Bone roll flips 180 degrees when extruding bones vertically
Joshua Leung [Thu, 24 Jan 2013 02:52:03 +0000 (02:52 +0000)]
Bugfix [#33974] Bone roll flips 180 degrees when extruding bones vertically

For example, if you're making a chain of bones (e.g. for a spine) by extruding
the tip joint of an initial bone, the bone rolls would be: 0 (for the initial
bone), 180, -180, 180, -180, etc. This has the undesirable effect of causing
B-Bones to twist to match the roll values at the other end of the bone.

The fix here seems to improve the situation in this case: bone roll values don't
flip or change anymore (in fact, the bone axes stay perfectly aligned now, as
they should). It also doesn't seem to cause any problems in other common cases I

6 years agoadd bullet define & include for scons makesrna, also move meshcache utils into own...
Campbell Barton [Thu, 24 Jan 2013 02:14:39 +0000 (02:14 +0000)]
add bullet define & include for scons makesrna, also move meshcache utils into own file.

6 years agoreplace calloc + memcpy with recalloc.
Campbell Barton [Thu, 24 Jan 2013 00:46:51 +0000 (00:46 +0000)]
replace calloc + memcpy with recalloc.

6 years agostyle cleanup
Campbell Barton [Wed, 23 Jan 2013 23:42:18 +0000 (23:42 +0000)]
style cleanup

6 years agostyle cleanup: bake
Campbell Barton [Wed, 23 Jan 2013 23:28:22 +0000 (23:28 +0000)]
style cleanup: bake

6 years agoFix #31338: python enum properties can now specify icons for items, in the following
Brecht Van Lommel [Wed, 23 Jan 2013 21:55:11 +0000 (21:55 +0000)]
Fix #31338: python enum properties can now specify icons for items, in the following
order: (identifier, name, description, icon, unique number)

This also works without the icon still, for compatibility.

6 years agoFix #33896: particle add brush with radius 1 would give duplicated and NaN hairs.
Brecht Van Lommel [Wed, 23 Jan 2013 19:40:52 +0000 (19:40 +0000)]
Fix #33896: particle add brush with radius 1 would give duplicated and NaN hairs.

6 years agoCycles Hair: Multiple vertex colours and UV coordinates
Stuart Broadfoot [Wed, 23 Jan 2013 17:15:45 +0000 (17:15 +0000)]
Cycles Hair: Multiple vertex colours and UV coordinates

Added export of multiple UV coordinates and vertex colour attributes.

A debugging option to export the strands without using the cache has also been removed.

6 years agoMesh Cache UI:
Thomas Dinges [Wed, 23 Jan 2013 16:57:43 +0000 (16:57 +0000)]
Mesh Cache UI:
* Modifier was not in alphabetical order
* No Icon was displayed in the Add Modifier menu.

Note: Mesh Cache uses Mesh Deform Icon at the moment, needs a unique one.

6 years agoFix #33915: tweak self intersection epsilon for motion blur a bit further, still
Brecht Van Lommel [Wed, 23 Jan 2013 16:56:02 +0000 (16:56 +0000)]
Fix #33915: tweak self intersection epsilon for motion blur a bit further, still
had some cases where there were artifacts. Also fix rendering error with shutter
time set to 0.

6 years agofix blenderplayer scons after bullet merge
Antony Riakiotakis [Wed, 23 Jan 2013 16:38:09 +0000 (16:38 +0000)]
fix blenderplayer scons after bullet merge

6 years agoUI todo:
Ton Roosendaal [Wed, 23 Jan 2013 16:01:35 +0000 (16:01 +0000)]
UI todo:

Added "Panel Title" style to Theme settings.
Allows to make these nice larger or draw differently.

Also tried to put hinting in Style, but this needs to be a per-font
setting. uiFont data is still not being saved (also not allowing
to set own font files for UI). That's a todo for 267 then.

6 years agoFix compilation with WITH_X11_XINPUT=OFF
Sv. Lockal [Wed, 23 Jan 2013 15:01:33 +0000 (15:01 +0000)]
Fix compilation with WITH_X11_XINPUT=OFF

6 years agoFix for missing function stub when WITH_BULLET is disabled.
Lukas Toenne [Wed, 23 Jan 2013 14:55:41 +0000 (14:55 +0000)]
Fix for missing function stub when WITH_BULLET is disabled.

6 years agoFix normalize_m4_m4 not working correct by not copying the entire matrix,
Brecht Van Lommel [Wed, 23 Jan 2013 14:37:12 +0000 (14:37 +0000)]
Fix normalize_m4_m4 not working correct by not copying the entire matrix,
caused issue in blender internal with recent fix.

6 years agoFix for [#33959] laplacian smooth gui buggy
Thomas Dinges [Wed, 23 Jan 2013 14:19:01 +0000 (14:19 +0000)]
Fix for [#33959] laplacian smooth gui buggy
* Made the property UI range do bigger steps.
* Increased default values a bit. If people need extreme small values (0.00001) they can enter that manually.

6 years agoFix #33556: overlapping regions draw over render info at the top of 3d view and
Brecht Van Lommel [Wed, 23 Jan 2013 14:05:08 +0000 (14:05 +0000)]
Fix #33556: overlapping regions draw over render info at the top of 3d view and
image editor. Also fix it not scaling properly with DPI.

6 years agorigidbody: Fix constraint buttons only showing for mesh objects
Sergej Reich [Wed, 23 Jan 2013 13:45:52 +0000 (13:45 +0000)]
rigidbody: Fix constraint buttons only showing for mesh objects

Was silly indentation mistake.

6 years agoFix #33905: cycles crash with bsdf node plugged twice into add shader.
Brecht Van Lommel [Wed, 23 Jan 2013 13:13:20 +0000 (13:13 +0000)]
Fix #33905: cycles crash with bsdf node plugged twice into add shader.