6 years agoadd BLI_mempool_as_arrayN utility function for getting the mempool as a new array...
Campbell Barton [Wed, 30 Jan 2013 21:17:09 +0000 (21:17 +0000)]
add BLI_mempool_as_arrayN utility function for getting the mempool as a new array (utility function currently unused).

6 years agoFix #33984: cycles shadow pass problem with CUDA.
Brecht Van Lommel [Wed, 30 Jan 2013 17:04:51 +0000 (17:04 +0000)]
Fix #33984: cycles shadow pass problem with CUDA.

6 years agoCycles: make multiple importance sampling for lamps an option per lamp now,
Brecht Van Lommel [Wed, 30 Jan 2013 15:57:15 +0000 (15:57 +0000)]
Cycles: make multiple importance sampling for lamps an option per lamp now,
disabled by default for backwards compatibility.

6 years agoPatch by erwin94 [#34015] dilate/erode multithreading
Monique Dewanchand [Wed, 30 Jan 2013 15:43:13 +0000 (15:43 +0000)]
Patch by erwin94 [#34015] dilate/erode multithreading

another patch for the dilate/erode step method, still without any functional changes.
This time it keeps the general algorithm but uses the tile system to make it
multithreaded. I could not measure a speedup on my 2-core laptop, but hope that
it will be faster for more cores. The immediate speedup that is very visible though is
that tiles come in as soon as they are calculated and a dilate/erode node does not
block the whole image to be calculated.

till then, David.

6 years agostartup.blend edits
Campbell Barton [Wed, 30 Jan 2013 15:34:02 +0000 (15:34 +0000)]
startup.blend edits
- make timeline less tall.
- make outliner more tall.
- set node and image channel displayes to RGBA.

6 years agodisable ubuntu unity workaround, causes issues with modifier keys held doun with...
Campbell Barton [Wed, 30 Jan 2013 13:44:24 +0000 (13:44 +0000)]
disable ubuntu unity workaround, causes issues with modifier keys held doun with multiple windows.

no time to fix now so disabling.

6 years agoCycles material preview: fix for generated/packed/movie files
Sergey Sharybin [Wed, 30 Jan 2013 13:42:12 +0000 (13:42 +0000)]
Cycles material preview: fix for generated/packed/movie files

Issue was caused by cycles trying to find builtin images in a main
database and in case of preview render images are not in database,
they're just referenced by shader node tree.

Now builtin images in cycles have got void* pointer to store data
needed to load builtin images.

In case ob blender session, this pointer will store pointer from
PointerRNA for image datablock and used later to construct Image
class based on this pointer.

This also saves database lookup for final render which is nice :)

Reviewed by Brecht.

6 years agoAdd active region for operator execution.
Campbell Barton [Wed, 30 Jan 2013 12:22:02 +0000 (12:22 +0000)]
Add active region for operator execution.

This means you can for example, uv unwrap in quad-view and change settings in the toolbar without defaulting back to the first quad-view region available.

This may be displayed to the user later, for now this is set on executing registrable operators.

6 years agofix [#33740] Incorecct UV mapping from camera view
Campbell Barton [Wed, 30 Jan 2013 11:06:02 +0000 (11:06 +0000)]
fix [#33740] Incorecct UV mapping from camera view

Bug was in fact that the options for this operator couldn't be accessed (unless you knew to press f6), now the redo panel sets the window area before polling.

Now other operators that use the window region will show settings too.

6 years agocmake config files BOOL type was ignored by cmake.
Campbell Barton [Wed, 30 Jan 2013 07:33:26 +0000 (07:33 +0000)]
cmake config files BOOL type was ignored by cmake.

6 years agoBGE: Some various changes to make moving the character physics type easier:
Mitchell Stokes [Wed, 30 Jan 2013 05:55:17 +0000 (05:55 +0000)]
BGE: Some various changes to make moving the character physics type easier:
  * Undoing the previous applyMovement() changes for characters. This was causing bugs for the Motion Actuator.
  * Creating a Character Motion type for the Motion Actuator with specific controls for characters. This includes moving, rotating and jumping.
  * Adding a KX_CharacterWrapper.walkDirection to set the character's direction and speed.

Note, this also resolves the following bugs:
[#33585] "Setting dLoc of motion actuator [0,0,0] via python won't stop object" reported by Manuel Bellersen (urfoex)
[#33503] "Character physics type won´t accept more than one motion anymore" reported by Mr Larodos

6 years agopatch [#33886] Combine Dissolve Menu with Delete Menu
Campbell Barton [Wed, 30 Jan 2013 05:19:27 +0000 (05:19 +0000)]
patch [#33886] Combine Dissolve Menu with Delete Menu

6 years agopatch [#34039] Fix Alt key glitch on Unity desktop
Campbell Barton [Wed, 30 Jan 2013 04:12:32 +0000 (04:12 +0000)]
patch [#34039] Fix Alt key glitch on Unity desktop
by Shinsuke Irie (irie) with own minor changes.

6 years agobridge tool could make bow-tie quads when given 2 isolated edges.
Campbell Barton [Wed, 30 Jan 2013 03:12:19 +0000 (03:12 +0000)]
bridge tool could make bow-tie quads when given 2 isolated edges.

6 years agofix [#33987] X-ray mode on bones nullifies weight paint mode
Campbell Barton [Wed, 30 Jan 2013 02:27:13 +0000 (02:27 +0000)]
fix [#33987] X-ray mode on bones nullifies weight paint mode

This effected vertex paint mode too.

6 years agoenable continuous grab for sliders, initially this was disabled because we didnt...
Campbell Barton [Tue, 29 Jan 2013 23:33:58 +0000 (23:33 +0000)]
enable continuous grab for sliders, initially this was disabled because we didnt support un-grabbing at the new slider location.

6 years agoupdate themes.
Campbell Barton [Tue, 29 Jan 2013 21:58:07 +0000 (21:58 +0000)]
update themes.

6 years agoFix #34016: add backwards compatibility for deprecated region.callback_add
Brecht Van Lommel [Tue, 29 Jan 2013 21:34:58 +0000 (21:34 +0000)]
Fix #34016: add backwards compatibility for deprecated region.callback_add
python function, this keep addons working. It's better to use the new function
but might as well avoid breaking compatibility here.

6 years agocorrection to r54188, also don't attempt to triangulate triangles.
Campbell Barton [Tue, 29 Jan 2013 20:49:40 +0000 (20:49 +0000)]
correction to r54188, also don't attempt to triangulate triangles.

6 years agoFix [#34008]: Scaling Smoke Domain In Z-Axis Crashes Blender
Miika Hamalainen [Tue, 29 Jan 2013 19:27:05 +0000 (19:27 +0000)]
Fix [#34008]: Scaling Smoke Domain In Z-Axis Crashes Blender

Also as minor change skip base_res update on domain step if adaptive domain isn't enabled.

6 years agoFix #34031: in the keymap editor, Timer and Text Input types did not show field
Brecht Van Lommel [Tue, 29 Jan 2013 17:30:30 +0000 (17:30 +0000)]
Fix #34031: in the keymap editor, Timer and Text Input types did not show field
to edit the operator name.

6 years agoCycles: collapse preview render panel by default. It's a matter of personal
Brecht Van Lommel [Tue, 29 Jan 2013 17:30:26 +0000 (17:30 +0000)]
Cycles: collapse preview render panel by default. It's a matter of personal
preference, but it slows down 3D view rendering to have two renders going so
I rather disable it by default.

6 years agoFix #34003: hide confusing unlink button for pinned datablock in properties editor.
Brecht Van Lommel [Tue, 29 Jan 2013 17:15:51 +0000 (17:15 +0000)]
Fix #34003: hide confusing unlink button for pinned datablock in properties editor.

6 years agoskip calculating the normal for each face when triangulating, all callers make sure...
Campbell Barton [Tue, 29 Jan 2013 15:05:23 +0000 (15:05 +0000)]
skip calculating the normal for each face when triangulating, all callers make sure its valid. also remove some commented code (more then one generation of bmesh old).

6 years agoPreview Render:
Thomas Dinges [Tue, 29 Jan 2013 14:52:26 +0000 (14:52 +0000)]
Preview Render:
* Changing Material Preview type (Sphere, Monkey...) should not trigger ND_SHADING_DRAW. Caused Cycles 3D View render to re-start.

It now only triggers an ND_SHADER update, which will be handled inside the Properties Editor Listener and executes a Preview Re-Render.

6 years agoCycles Hair: Addition of render settings and static BVH strand width scaling
Stuart Broadfoot [Tue, 29 Jan 2013 12:32:43 +0000 (12:32 +0000)]
Cycles Hair: Addition of render settings and static BVH strand width scaling

Addition of a RNA function to toggle between the hair settings and rebuild the cache. This enables the usage of the render step, child number and full display percentage with f12 rendering.

A scaling to the strand radius has also been added for the static bvh. This only matches up with dynamic for uniform scaling.

A very small fix is included for multiple uvs/vertex colours when using child particles.

6 years agoAlpha display changes:
Sergey Sharybin [Tue, 29 Jan 2013 12:03:38 +0000 (12:03 +0000)]
Alpha display changes:

Previous alpha-overing on black for RGB display wasn't so much useful
for artists, changed in a way:

- Made RGBA display default for node editor backdrop and image editor,
  so it'll be clear that image does have alpha channel
- RGB display will ignore alpha channel completely

Reshuffled buttons for RGBA/RGB so now the order is following:
    RGBA | RGB | Alpha | Z

Still to come: startup.blend shall be altered to make RGBA default.

6 years agosculpt, replace bmo call to triangulate with BM_mesh_triangulate()
Campbell Barton [Tue, 29 Jan 2013 10:43:15 +0000 (10:43 +0000)]
sculpt, replace bmo call to triangulate with BM_mesh_triangulate()

6 years agoTriangulate modifier no longer uses bmesh operator api call, instead add a BM_mesh_tr...
Campbell Barton [Tue, 29 Jan 2013 10:31:05 +0000 (10:31 +0000)]
Triangulate modifier no longer uses bmesh operator api call, instead add a BM_mesh_triangulate() function. Gives ~2x speedup in my tests on an optimized build.

6 years agoSome optimization (their is much more possible here, but it will have to wait for...
Bastien Montagne [Tue, 29 Jan 2013 08:34:26 +0000 (08:34 +0000)]
Some optimization (their is much more possible here, but it will have to wait for complete refactor I’m working on currently).

6 years agoFix #34009: multi user curves + deform modifier behavior
Sergey Sharybin [Tue, 29 Jan 2013 08:21:21 +0000 (08:21 +0000)]
Fix #34009: multi user curves + deform modifier behavior

Issue was caused by storing BB calculated from final displist in
Curve datablock and not having Object's BB at all. This is not
clear at how could have been worked for so long.

Changed it so Curve's BB is calculated from non-deformed displist,
which matches BKE_object_min_max and BKE_curve_texspace_calc and
made it so Object's BB would be calculated from final displist.

6 years agofix [#34024] delete - Edge loop crash
Campbell Barton [Tue, 29 Jan 2013 08:19:23 +0000 (08:19 +0000)]
fix [#34024] delete - Edge loop crash

6 years agoMore UI messages tweaks and fixes. Please do not use points inside tooltips, unless...
Bastien Montagne [Tue, 29 Jan 2013 08:01:50 +0000 (08:01 +0000)]
More UI messages tweaks and fixes. Please do not use points inside tooltips, unless they are absolutely mandatory (they are ugly, as we do not have final points!).

6 years agotweak to edge slide - use a quads opposite vertex when both edges share a quad, gives...
Campbell Barton [Tue, 29 Jan 2013 05:30:39 +0000 (05:30 +0000)]
tweak to edge slide - use a quads opposite vertex when both edges share a quad, gives nicer results.

6 years agofix for fix, ugh!, vertex slide with concave/convex ngons & normal flipping should...
Campbell Barton [Tue, 29 Jan 2013 05:18:30 +0000 (05:18 +0000)]
fix for fix, ugh!, vertex slide with concave/convex ngons & normal flipping should now work properly in all cases.
... somehow I managed to make test-cases that worked in previous commits but failed in other cases.

6 years agoCorrect fix for r54164, the testcase I was using worked but different edge slide...
Campbell Barton [Tue, 29 Jan 2013 03:25:47 +0000 (03:25 +0000)]
Correct fix for r54164, the testcase I was using worked but different edge slide examples didn't.

Edge slide needed to check for concave ngons too.

add BM_loop_is_convex() and expose to python too.

6 years agoSkeleton Sketching bugfixes/tweaks
Joshua Leung [Tue, 29 Jan 2013 03:04:24 +0000 (03:04 +0000)]
Skeleton Sketching bugfixes/tweaks

* Disabling Skeleton Sketching now refreshes the view properly, so that strokes
don't linger on even after being disabled
* Added the delete operator to the panel

6 years agofix for r54166, the average edge length needs to be maintained.
Campbell Barton [Tue, 29 Jan 2013 02:17:19 +0000 (02:17 +0000)]
fix for r54166, the average edge length needs to be maintained.

6 years agoBugfix [#34012] Skeleton Sketching settings unclear
Joshua Leung [Tue, 29 Jan 2013 02:00:33 +0000 (02:00 +0000)]
Bugfix [#34012] Skeleton Sketching settings unclear

Although the bug report here wasn't exactly clear about what exactly was wrong,
it soon became apparent that the UI stuff here was in need of some love.

* Ported over missing tooltips from 2.49 (i.e. most of them)
* Fixed a few incorrect tooltips (mostly the subdivision length settings)
* Made the autonaming and number/side settings slightly clearer - number/side
are used to replace placeholders in the names of template bones (&N and &S
respectively) when autonaming is disabled. When it is enabled, these values are
determined automatically.

6 years agoWindow menu: Make Screencast (should be Save?, to match screenshot?) option.
Pablo Vazquez [Tue, 29 Jan 2013 01:43:03 +0000 (01:43 +0000)]
Window menu: Make Screencast (should be Save?, to match screenshot?) option.

Thought of setting the operator context before so it wouldnt invoke the confirmation dialog, but better leave it by default to confirm since it might be clicked by mistake and start dumping video/image-sequence and can get annoying.

6 years agominor improvement to edge slide, normalize the edge vectors that accumulate the direc...
Campbell Barton [Tue, 29 Jan 2013 01:37:04 +0000 (01:37 +0000)]
minor improvement to edge slide, normalize the edge vectors that accumulate the direction, otherwise longer edges would skew the direction.

6 years agocode cleanup: add some comments about to get_next_loop() for edge slide, also name...
Campbell Barton [Tue, 29 Jan 2013 01:31:42 +0000 (01:31 +0000)]
code cleanup: add some comments about to get_next_loop() for edge slide, also name vars better (was using meaningless names).

6 years agofix for edge slide bug, when there were no edges to slide along the direction calcula...
Campbell Barton [Tue, 29 Jan 2013 01:23:33 +0000 (01:23 +0000)]
fix for edge slide bug, when there were no edges to slide along the direction calculated from the face would be wrong half the time (depending on the edge loop direction which is arbitrary).

6 years agoWhitespace
Joshua Leung [Tue, 29 Jan 2013 01:23:29 +0000 (01:23 +0000)]

6 years agocode cleanup: just variable naming
Campbell Barton [Tue, 29 Jan 2013 01:02:45 +0000 (01:02 +0000)]
code cleanup: just variable naming

6 years agocode cleanup: var rename and add assert, when writing to out of bounds array.
Campbell Barton [Tue, 29 Jan 2013 00:20:04 +0000 (00:20 +0000)]
code cleanup: var rename and add assert, when writing to out of bounds array.
minor edit to recent tip change.

6 years agoBetter tooltips for the Full Screen option on Save Screenshot/Screencast operators.
Pablo Vazquez [Mon, 28 Jan 2013 23:58:09 +0000 (23:58 +0000)]
Better tooltips for the Full Screen option on Save Screenshot/Screencast operators.

6 years agoBugfix [#34019] Limit Constraints still affected transforms when turned off
Joshua Leung [Mon, 28 Jan 2013 23:57:02 +0000 (23:57 +0000)]
Bugfix [#34019] Limit Constraints still affected transforms when turned off

Limit Constraints (i.e. Limit Location/Rotation/Scale/Distance) with 'For
Transform' option enabled would still be applied when transforming objects even
when they were turned off using the eye icon in the constraint panel headers.
The "off" flag was never added to the checks for muted or disabled constraints
to be skipped here.

6 years agoInfo Editor: Adding Save Screenshot option to the Window menu, was only available...
Pablo Vazquez [Mon, 28 Jan 2013 23:06:27 +0000 (23:06 +0000)]
Info Editor: Adding Save Screenshot option to the Window menu, was only available through search or shortcut (CTRL+F3)

6 years agoCycles Preview: Rotated Suzanne a bit for better angle. Raised the intensity of the...
Pablo Vazquez [Mon, 28 Jan 2013 22:08:30 +0000 (22:08 +0000)]
Cycles Preview: Rotated Suzanne a bit for better angle. Raised the intensity of the mesh light, and moved the mesh/lamp to also be in the layer of World Sphere preview (was black previously, since it had no lamps)

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.