blender.git
9 years agoQuick fix, just in case the mesh has no vertex groups, there won't be a crash!
Joshua Leung [Fri, 23 Apr 2010 12:15:50 +0000 (12:15 +0000)]
Quick fix, just in case the mesh has no vertex groups, there won't be a crash!

9 years agoBugfix #22101: Envelopes dont respect armature modifier vertex group mask
Joshua Leung [Fri, 23 Apr 2010 12:11:56 +0000 (12:11 +0000)]
Bugfix #22101: Envelopes dont respect armature modifier vertex group mask

Changed the point where the vertex groups are retrieved. Hopefully this commit doesn't break any cases I haven't thought of...

9 years agoalways print reports immediately when running in background mode.
Campbell Barton [Fri, 23 Apr 2010 11:48:17 +0000 (11:48 +0000)]
always print reports immediately when running in background mode.

9 years agoMesh Deform Modifier: compress static binding weights better, threshold
Brecht Van Lommel [Fri, 23 Apr 2010 11:19:06 +0000 (11:19 +0000)]
Mesh Deform Modifier: compress static binding weights better, threshold
is still set very low so in many cases it could be even smaller, but being
a bit conservative here to try to avoid breaking rigs.

This is not forward-compatible, i.e. loading new files in older blender
versions will loose the binding.

9 years agosvn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r28371:28372
Campbell Barton [Fri, 23 Apr 2010 09:24:22 +0000 (09:24 +0000)]
svn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r28371:28372
console history save/load from joe

9 years agofix for camera switching, broke 28359
Campbell Barton [Fri, 23 Apr 2010 08:39:10 +0000 (08:39 +0000)]
fix for camera switching, broke 28359

9 years agoTweaks to Render Layers panel
Matt Ebb [Fri, 23 Apr 2010 06:33:30 +0000 (06:33 +0000)]
Tweaks to Render Layers panel

'Mask layers' should be visible always, they still work to mask out objects on
layers when zmask isn't on (zmask is slightly different.. a bit confusing)

Icon tweaks too

9 years agoSpline IK - Influence Control
Joshua Leung [Fri, 23 Apr 2010 05:14:00 +0000 (05:14 +0000)]
Spline IK - Influence Control

Made the 'Influence' slider work for Spline IK too, and made that setting visible now that it works.

Note that there is still some popping that can occur when going to/from influence = 0.0. I'm not sure exactly what's causing this yet, but hopefully it won't be too noticeable in practice.

9 years agoImproved the Outliner live-search so that in the default scene, doing a simple search...
Joshua Leung [Fri, 23 Apr 2010 04:16:08 +0000 (04:16 +0000)]
Improved the Outliner live-search so that in the default scene, doing a simple search for "cu" (to show the default cube only) will show the matching item.

Previously, because the 'Scene' item is encountered first, all sub-items like this would be ignored. Now, when a non-matching item is encountered, it's subtree is checked as per normal, as long as the item was expanded (so that its subtree is still visible).

9 years agoOutliner Live-Search Bugfixes:
Joshua Leung [Fri, 23 Apr 2010 03:53:05 +0000 (03:53 +0000)]
Outliner Live-Search Bugfixes:

Ton's commits missed the RNA changes needed to make this work (i.e. the search field was un-defined). This has now been added, and the search field has the 'search eyeglass' icon to make its purpose clearer.

I've also taken this opportunity to restore the search matching flags (i.e. case sensitivity and complete vs partial matches), making these separate toggle options instead. The old searching operator stuff can probably be removed now?

9 years agoFix [#22121] Object Mapping - "clone" linked w/previous material/texture
Matt Ebb [Fri, 23 Apr 2010 02:25:19 +0000 (02:25 +0000)]
Fix [#22121] Object Mapping - "clone" linked w/previous material/texture
after Make Single User

Was an error in UI display of node materials/texture lists, combined with a
very weird node setup.

I will be a very happy person the day we finally get rid of the terribly
confusing materials-inside-materials behaviour.

9 years agoFix [#21582] Adjusting material color (color picker) crashes
Matt Ebb [Fri, 23 Apr 2010 01:41:01 +0000 (01:41 +0000)]
Fix [#21582] Adjusting material color (color picker) crashes

Thanks to the testers for helping diagnose this!

9 years agoFix [#22120] Physics modifiers can't be removed
Matt Ebb [Fri, 23 Apr 2010 01:06:28 +0000 (01:06 +0000)]
Fix [#22120] Physics modifiers can't be removed

9 years agoFix for small error in r28348, was preventing texture influence panel from displaying
Matt Ebb [Fri, 23 Apr 2010 00:05:46 +0000 (00:05 +0000)]
Fix for small error in r28348, was preventing texture influence panel from displaying

9 years agorename scene.visible_layers -> layers, since layers are used for editing, export...
Campbell Barton [Thu, 22 Apr 2010 20:00:19 +0000 (20:00 +0000)]
rename scene.visible_layers -> layers, since layers are used for editing, export, rendering & anim evaluation.

9 years agochaning the camera from the scene buttons didnt update the views. moved some scene...
Campbell Barton [Thu, 22 Apr 2010 19:57:18 +0000 (19:57 +0000)]
chaning the camera from the scene buttons didnt update the views. moved some scene/view functions from view3d_view.c into BKE_screen since they need to be accessed when changing cameras from outside the view.

9 years agoskip instancing objects/groups when linking in a scene, the scene has references...
Campbell Barton [Thu, 22 Apr 2010 18:19:21 +0000 (18:19 +0000)]
skip instancing objects/groups when linking in a scene, the scene has references to the objects/groups its self.

9 years agoHeader button for search filter in outliner.
Ton Roosendaal [Thu, 22 Apr 2010 18:17:17 +0000 (18:17 +0000)]
Header button for search filter in outliner.

9 years ago- Added search filter in outliner header. Only activates filter on enter,
Ton Roosendaal [Thu, 22 Apr 2010 18:16:56 +0000 (18:16 +0000)]
- Added search filter in outliner header. Only activates filter on enter,
  should make it do 'live' search while types.
- Connecting Viewer nodes sometimes didn't recalculate, depsgraph needed
  remade

9 years agorna rename start/end --> frame_start/end
Campbell Barton [Thu, 22 Apr 2010 17:35:00 +0000 (17:35 +0000)]
rna rename start/end --> frame_start/end

9 years agoonly override start and end frames with particle's if the partices are emitters....
Campbell Barton [Thu, 22 Apr 2010 16:23:44 +0000 (16:23 +0000)]
only override start and end frames with particle's if the partices are emitters. Was very confusing for hair baking.

9 years agoavoid try/except with in texture UI
Campbell Barton [Thu, 22 Apr 2010 16:22:47 +0000 (16:22 +0000)]
avoid try/except with in texture UI

9 years agoRemove unused var from blenfont.
Diego Borghetti [Thu, 22 Apr 2010 12:05:19 +0000 (12:05 +0000)]
Remove unused var from blenfont.

9 years agowarning cleanup
Matt Ebb [Thu, 22 Apr 2010 11:35:36 +0000 (11:35 +0000)]
warning cleanup

9 years agoFix [#22088] Object's material changes (links) to other when moving an object
Matt Ebb [Thu, 22 Apr 2010 11:35:11 +0000 (11:35 +0000)]
Fix [#22088] Object's material changes (links) to other when moving an object
to an other layer

WM_operator_props_popup() and subsequent block handle function redo_cb()
was popping an operator undo, without having pushed one previously -
this would undo one too many times when using the properties invoke popup.

Fixed by adding an undo push to WM_operator_props_popup()

9 years agoBugFix:
Diego Borghetti [Thu, 22 Apr 2010 10:56:45 +0000 (10:56 +0000)]
BugFix:
[#20854] PROPERTIES STAMP: Rendering stamp flickers in output renders

Blenfont was not thread safe, that is why one thread can change
the font properties (size, dpi, color, etc) at the same time
that the stamp draw on the image, and then the problem.

To make blenfont thread safe I have to change two important things:

1) Every BLF_* function take one argument, the font id.
2) We have two new function to make font "thread safe":
BLF_load_unique
BLF_load_mem_unique

This two function are for case like stamp, that need and own font
that don't share the glyph cache, so can draw without problem
in a different thread.

Why the BLF_*_unique function ?

Because blenfont keep only one copy of a font and keep a list of
"glyph cache". Every glyph cache have size and dpi, so if two
different thread access the same font at the same time, they can
change value and finish with something like the stamp problem.

Why don't remove the glyph cache ?

Because if we do that, we finish with a font object for every size
and dpi, and the stamp is really a special case that happen in
the rendering process, so I really thing is better keep the
glyph cache and make this two new function to handle this
special case.

(When I say "font object" I mean have the same freetype font multiple
times just to have differents size and dpi)

As Matt point we still can have one case that two thread access
the BLF_*_unique function at the same time, but I am looking to
fix this with some class of thread lock.

For now I test and work fine, so if some one found problem, please
let me know.

Campbell I have to change the python api (python/generic/blf_api.c)
to the new syntax, so maybe you can take a look at this.

9 years agorna: added lib.parent access and made filename editable.
Campbell Barton [Thu, 22 Apr 2010 08:25:05 +0000 (08:25 +0000)]
rna: added lib.parent access and made filename editable.

9 years agoFix [#22097] missing panels in texture tab
Matt Ebb [Thu, 22 Apr 2010 06:59:41 +0000 (06:59 +0000)]
Fix [#22097] missing panels in texture tab

Made texture/texture slot context a bit less flaky when dealing with active material and
texture nodes inside a node material in the node editor. Now if the active material has
nodes enabled, and there are no active material/texture nodes inside it, nothing will be
shown in the texture properties (similar to 2.49).

9 years agoFix [#22078] Cannot apply modifier in python (context error)
Matt Ebb [Thu, 22 Apr 2010 01:55:10 +0000 (01:55 +0000)]
Fix [#22078] Cannot apply modifier in python (context error)

Previously all modifier operators relied on the buttons layout data context pointer to
decide which modifier to work on. This meant that these operators would only work
from from the properties panel, and not from scripting/macros or for operator redo.

This commit makes all modifier operators take the modifier name as an operator
property, so the operators can be re-done or executed outside of the modifier panel.
When invoking the operators from the modifier panel, they automatically fill in the
operator property from context.

This isn't a perfect API design, but it does bring these operators in line with the design
of being able to access all UI functionality via other means like scripts.

9 years agoFix for bug in r28320, sizeof(pointer) was breaking path functions
Matt Ebb [Thu, 22 Apr 2010 01:06:59 +0000 (01:06 +0000)]
Fix for bug in r28320, sizeof(pointer) was breaking path functions

9 years agocopying values from int buttons were adding floating point 0.00000's
Campbell Barton [Wed, 21 Apr 2010 21:43:29 +0000 (21:43 +0000)]
copying values from int buttons were adding floating point 0.00000's

9 years agoSave a Copy, (operator option for save as),
Campbell Barton [Wed, 21 Apr 2010 19:14:20 +0000 (19:14 +0000)]
Save a Copy, (operator option for save as),
Too many times we have images in blend files that are just saved renders.

9 years agofix [#22080] double clicking a file in file browser to open a file doesn't work,...
Andrea Weikert [Wed, 21 Apr 2010 18:13:26 +0000 (18:13 +0000)]
fix [#22080] double clicking a file in file browser to open a file doesn't work, r28290 win32
* Forgot to move keymap back from KM_PRESS to KM_CLICK (was testing code). KM_PRESS doesn't play nicely with double click

9 years agofilter 'Enable' wasnt working.
Campbell Barton [Wed, 21 Apr 2010 16:50:51 +0000 (16:50 +0000)]
filter 'Enable' wasnt working.

9 years agofix for divide by zero on vertex dirt script, show from the vertex paint menu
Campbell Barton [Wed, 21 Apr 2010 16:22:37 +0000 (16:22 +0000)]
fix for divide by zero on vertex dirt script, show from the vertex paint menu

9 years agofix for crash drawing weights in lattice editmode.
Campbell Barton [Wed, 21 Apr 2010 14:46:32 +0000 (14:46 +0000)]
fix for crash drawing weights in lattice editmode.

9 years agoreplace add_v3_v3v3() --> add_v3_v3() where possible
Campbell Barton [Wed, 21 Apr 2010 12:27:48 +0000 (12:27 +0000)]
replace add_v3_v3v3() --> add_v3_v3() where possible

9 years agooption to use curve point weights to influence particle effectors.
Campbell Barton [Wed, 21 Apr 2010 11:59:47 +0000 (11:59 +0000)]
option to use curve point weights to influence particle effectors.

9 years agopy api. bpy.utils.relpath() function.
Campbell Barton [Wed, 21 Apr 2010 09:27:36 +0000 (09:27 +0000)]
py api. bpy.utils.relpath() function.

9 years agobugfix [#22098] Binreloc buffer overrun
Campbell Barton [Wed, 21 Apr 2010 07:59:16 +0000 (07:59 +0000)]
bugfix [#22098] Binreloc buffer overrun
from Dan Eicher (dna)

there are many of these in blender however this case could happen quite easily.

9 years agobugfix [#22091] Crashing on Add Shortcut
Campbell Barton [Wed, 21 Apr 2010 07:56:34 +0000 (07:56 +0000)]
bugfix [#22091] Crashing on Add Shortcut

9 years ago[#22100] Jpeg2000 null pointer dereference
Campbell Barton [Wed, 21 Apr 2010 07:49:06 +0000 (07:49 +0000)]
[#22100] Jpeg2000 null pointer dereference
found by Dan Eicher (dna)

9 years agoFix [#22099] Interactive Loopcut hs anoyin problem
Matt Ebb [Wed, 21 Apr 2010 04:21:27 +0000 (04:21 +0000)]
Fix [#22099] Interactive Loopcut hs anoyin problem

Made the loop cut confirmation (when finding an edge ring to cut) happen on
mouse press, rather than release.

This has a nice side effect when using the 'release confirm' option, combining
the two steps into one - with this on you can click once to immediately place the
cut in the center, or click+drag to move the cut line where you want it to.

See: http://mke3.net/blender/devel/2.5/loopcut_releaseconfirm.mov

9 years agoFix [#22082] World gradients look like poo
Matt Ebb [Wed, 21 Apr 2010 02:48:49 +0000 (02:48 +0000)]
Fix [#22082] World gradients look like poo
(nice)

Added dither support to in-progress render float->byte conversions.

9 years agovertex group option for lattice, needed for applying a lattice to a beard/moustache...
Campbell Barton [Tue, 20 Apr 2010 21:38:55 +0000 (21:38 +0000)]
vertex group option for lattice, needed for applying a lattice to a beard/moustache without moving the roots about.

9 years agofix for crash getting the current material & more verbose library errors
Campbell Barton [Tue, 20 Apr 2010 16:12:39 +0000 (16:12 +0000)]
fix for crash getting the current material & more verbose library errors

9 years agoreplace referenecs to python 2.x
Campbell Barton [Tue, 20 Apr 2010 15:46:28 +0000 (15:46 +0000)]
replace referenecs to python 2.x

9 years agoFix case of accessing freed windowmanager memory after reading a file.
Brecht Van Lommel [Tue, 20 Apr 2010 14:58:46 +0000 (14:58 +0000)]
Fix case of accessing freed windowmanager memory after reading a file.

9 years agohidden durian feature for entering a new path when linked libs are not found.
Campbell Barton [Tue, 20 Apr 2010 10:36:00 +0000 (10:36 +0000)]
hidden durian feature for entering a new path when linked libs are not found.

9 years agoFix #22085: compile error on windows, M_PI undeclared.
Brecht Van Lommel [Tue, 20 Apr 2010 09:28:15 +0000 (09:28 +0000)]
Fix #22085: compile error on windows, M_PI undeclared.

9 years agoBGE EPY Docs: PhysicsConstraints and fixes in other modules
Dalai Felinto [Tue, 20 Apr 2010 08:23:22 +0000 (08:23 +0000)]
BGE EPY Docs: PhysicsConstraints and fixes in other modules
PhysicsConstraints module documented by Jean-Fran├žois (Ninja Goliath) based on GameKit 2nd ed.
Thanks for the initiative and the great help!

General advice for anyone helping with EpyDocs:
* use :: instead of : to keep the indentation correct,
* use B{} for clarity when needed (e.g. createConstraints)

Adding F13 to F19 to complement Matt's recent commit
* There are other (not so important) functions in PhysicsConstraints module that are not exposed in the documentation right now.

The generated page is temporarily here, if someone want to review it:
http://blenderecia.orgfree.com/blender/tmp/PhysicsConstraints-module.html

9 years agoMade playback operators use exec() callback instead of invoke(), so that these can...
Joshua Leung [Tue, 20 Apr 2010 02:39:07 +0000 (02:39 +0000)]
Made playback operators use exec() callback instead of invoke(), so that these can be used for Python scripts.

Note that this is not the patch by dfelinto on the mailing list, since that fix would cause compiler warnings. Also, the invoke() (with the extra wmEvent* arg) is superfluous here, so there shouldn't be any problems with making this exec() only instead.

9 years agoAdded F13 - F19 keys for game engine too.
Matt Ebb [Tue, 20 Apr 2010 01:04:00 +0000 (01:04 +0000)]
Added F13 - F19 keys for game engine too.

9 years agoAdded ability to use up to F19 on the keyboard (previous max was F12).
Matt Ebb [Tue, 20 Apr 2010 00:08:27 +0000 (00:08 +0000)]
Added ability to use up to F19 on the keyboard (previous max was F12).

GHOST is already collecting up to F24, but I've only got up to F19 on this
keyboard so I've just committed what I could test here.

9 years agochange mathutils 'repr' functions to closer match input
Campbell Barton [Mon, 19 Apr 2010 22:02:53 +0000 (22:02 +0000)]
change mathutils 'repr' functions to closer match input

9 years ago== file browser ==
Andrea Weikert [Mon, 19 Apr 2010 19:29:40 +0000 (19:29 +0000)]
== file browser ==
Select from last selection. This new setting allows to select all files from the last selected to the current. (Works like SHIFT+SELECT in Windows file browser)
Keymap is LEFTMOUSE+ALT for now since LEFTMOUSE+CTRL is already used for renaming (like in outliner)

9 years agoFix crash when invoking File->Save from the menu
Andrea Weikert [Mon, 19 Apr 2010 18:11:00 +0000 (18:11 +0000)]
Fix crash when invoking File->Save from the menu

Operator can't call itself! Just call the actual exec function instead.

9 years agosetting array slices wasnt running rna update
Campbell Barton [Mon, 19 Apr 2010 13:37:44 +0000 (13:37 +0000)]
setting array slices wasnt running rna update
eg:
 scene.visible_layers[:] = obj.layers

9 years agoFix crash playing back files with saved speed control sequencer strip,
Brecht Van Lommel [Mon, 19 Apr 2010 13:27:54 +0000 (13:27 +0000)]
Fix crash playing back files with saved speed control sequencer strip,
frameMap cache was not set to NULL on load.

9 years agoPython API fix: Add COMPAT_ENGINES to properties_data_camera
Daniel Genrich [Mon, 19 Apr 2010 11:24:22 +0000 (11:24 +0000)]
Python API fix: Add COMPAT_ENGINES to properties_data_camera

9 years agoFix problem with limit rotation constraints during transform. This code
Brecht Van Lommel [Mon, 19 Apr 2010 09:38:36 +0000 (09:38 +0000)]
Fix problem with limit rotation constraints during transform. This code
would convert from quat to matrix and back if the bone had any constraint,
but did not normalize the quat first as done in other places, giving a
sudden jump when starting transform on some bones with constraints. Two
changes:

* Normalize quaternion first.
* Only do this conversion on bones with limit rotation constraints,
  instead of all bones with any constraint.

9 years agoimage operator poll functions for reload and replace now check for a valid image...
Campbell Barton [Mon, 19 Apr 2010 07:28:23 +0000 (07:28 +0000)]
image operator poll functions for reload and replace now check for a valid image, but not a valid buffer.

9 years agoAfter handling demohero's keymaps to a beta tester it became apparent
Daniel Salazar [Mon, 19 Apr 2010 06:20:16 +0000 (06:20 +0000)]
After handling demohero's keymaps to a beta tester it became apparent
that going for the full hotkey translation is actually counter
productive. Now using a more conservative keymap by Michael W that
focuses on general navigation, selection and other details

9 years agoFix [#22056] Minor UI problem in File Browser
Matt Ebb [Mon, 19 Apr 2010 04:39:01 +0000 (04:39 +0000)]
Fix [#22056] Minor UI problem in File Browser

9 years agoFix [#22058] Presets system not setting some input options.
Matt Ebb [Mon, 19 Apr 2010 01:50:30 +0000 (01:50 +0000)]
Fix [#22058] Presets system not setting some input options.

Added a few more input properties to store in interaction presets

9 years agoReverting edit mode Shrink Fatten to Alt+S after talking to Ali. This
Daniel Salazar [Mon, 19 Apr 2010 01:22:56 +0000 (01:22 +0000)]
Reverting edit mode Shrink Fatten to Alt+S after talking to Ali. This
makes it inline with curve Shrink Fatten and is a nicer regular use
hotkey

9 years agoPython API fix: Make properties_texture compatible with COMPAT_ENGINES, also a little...
Daniel Genrich [Mon, 19 Apr 2010 00:39:46 +0000 (00:39 +0000)]
Python API fix: Make properties_texture compatible with COMPAT_ENGINES, also a little enhancement for data_mesh (thanks to Matt)

9 years agoNew and much improved Maya Interaction Preset by demohero
Daniel Salazar [Mon, 19 Apr 2010 00:29:50 +0000 (00:29 +0000)]
New and much improved Maya Interaction Preset by demohero

9 years agoPython API: Make properties_data_mesh compatible with COMPAT_ENGINES. (supervised...
Daniel Genrich [Sun, 18 Apr 2010 23:52:37 +0000 (23:52 +0000)]
Python API: Make properties_data_mesh compatible with COMPAT_ENGINES. (supervised by Matt ;)

9 years agoAdd support for >2GiB files (as r28267) and some cleanups.
Guillermo S. Romero [Sun, 18 Apr 2010 20:47:05 +0000 (20:47 +0000)]
Add support for >2GiB files (as r28267) and some cleanups.

9 years ago== sequencer ==
Andrea Weikert [Sun, 18 Apr 2010 18:46:16 +0000 (18:46 +0000)]
== sequencer ==
* new icon for split view (at least temporary)
* icon buttons in header rather than popup menus for better efficiency (can easily be changed in python UI script again)

9 years agoBrought back editable anim_startofs and anim_endofs both with shuffle test
Peter Schlaile [Sun, 18 Apr 2010 18:30:55 +0000 (18:30 +0000)]
Brought back editable anim_startofs and anim_endofs both with shuffle test

9 years agoThis fixes largefile (> 4GB) problems in Linux.
Peter Schlaile [Sun, 18 Apr 2010 17:26:37 +0000 (17:26 +0000)]
This fixes largefile (> 4GB) problems in Linux.
(File browser showing negative file sizes, etc.)

9 years agoMSVC 9 projectfiles
Andrea Weikert [Sun, 18 Apr 2010 17:09:35 +0000 (17:09 +0000)]
MSVC 9 projectfiles
* update: SCA_PythonKeyboard.c and SCA_PythonMouse.c

9 years agoBugfix: text buttons in zoomed in or out views, didn't get the cursor on the
Ton Roosendaal [Sun, 18 Apr 2010 17:05:55 +0000 (17:05 +0000)]
Bugfix: text buttons in zoomed in or out views, didn't get the cursor on the
right location for mouseclicks.

9 years agoBrought back negative Channel-Variables in preview header, so
Peter Schlaile [Sun, 18 Apr 2010 16:30:46 +0000 (16:30 +0000)]
Brought back negative Channel-Variables in preview header, so
that preview can show final result from inside a meta strip again.

9 years agoremoved icons in proxy preview render size selection. (They don't
Peter Schlaile [Sun, 18 Apr 2010 15:30:21 +0000 (15:30 +0000)]
removed icons in proxy preview render size selection. (They don't
really help, if they are non-existent...)

9 years ago== Sequencer ==
Peter Schlaile [Sun, 18 Apr 2010 14:48:53 +0000 (14:48 +0000)]
== Sequencer ==

Removed seqrectx and seqrecty global variables.

9 years agopossible fix for [#22057] Autoname L/R in bones names center bones as .R
Campbell Barton [Sun, 18 Apr 2010 14:47:45 +0000 (14:47 +0000)]
possible fix for [#22057] Autoname L/R in bones names center bones as .R
Bone would get a '.' added even when there was no extension.
(center limit would still be useful)

- name flipping function used sizeof() incorrectly.
- ED_lorem should be extern.

9 years agoApplied:
Peter Schlaile [Sun, 18 Apr 2010 13:25:51 +0000 (13:25 +0000)]
Applied:
[#21390] Sequencer: Shifted frames on Time Flip/Flip Backwards

thanks to Koen Ribus(kori) for the patch.

9 years agoBrought back secondary input filtering, thereby
Peter Schlaile [Sun, 18 Apr 2010 13:05:17 +0000 (13:05 +0000)]
Brought back secondary input filtering, thereby
fixing
[#21014] SEQUENCER: Can no longer apply colour balance filter to colour effect strip.

Also: reordered some UI elements so that
geometry, time and color modifications are grouped together.

9 years agoBrought back N-key for sequencer preview.
Peter Schlaile [Sun, 18 Apr 2010 12:19:07 +0000 (12:19 +0000)]
Brought back N-key for sequencer preview.

9 years agoAdded RAW-DV-files (.dv) to filelist, so that drag-n-drop
Peter Schlaile [Sun, 18 Apr 2010 12:00:53 +0000 (12:00 +0000)]
Added RAW-DV-files (.dv) to filelist, so that drag-n-drop
to the sequencer timeline works properly.

9 years agoremove config.h references, was added for automake build system rev around 124-126...
Campbell Barton [Sun, 18 Apr 2010 10:28:37 +0000 (10:28 +0000)]
remove config.h references, was added for automake build system rev around 124-126 but isnt used by any build systems now.

9 years agovarious minor fixes
Campbell Barton [Sun, 18 Apr 2010 09:12:18 +0000 (09:12 +0000)]
various minor fixes
- collada export would run MEM_freeN on an un-initialized pointer in some cases.
- makesrna was missing a call to close a file.
- text cursor update function was missing a NULL check for st->text.
- possible (unlikely) un-initialized return value for bge python lamp.type, set error instead.
- possible (unlikely) missing NULL terminator with strncpy for ffmpeg.

9 years agowas using uninitialized string for node name display, also use sizeof() rather then...
Campbell Barton [Sun, 18 Apr 2010 08:54:42 +0000 (08:54 +0000)]
was using uninitialized string for node name display, also use sizeof() rather then fixed values.

9 years agoUpdating operator_simple template with new register functions and
Daniel Salazar [Sun, 18 Apr 2010 05:13:58 +0000 (05:13 +0000)]
Updating operator_simple template with new register functions and
missing bpy import

9 years agoSVN maintenance.
Guillermo S. Romero [Sat, 17 Apr 2010 22:43:18 +0000 (22:43 +0000)]
SVN maintenance.

9 years ago- for BGE mouse and keyboard events use tuples rather then lists
Campbell Barton [Sat, 17 Apr 2010 19:05:53 +0000 (19:05 +0000)]
- for BGE mouse and keyboard events use tuples rather then lists
- pep8 corrections

9 years agobugfix and cleanup
Campbell Barton [Sat, 17 Apr 2010 15:47:00 +0000 (15:47 +0000)]
bugfix and cleanup
- BGE Shader.setSampler(name, index): index range check was wrong.
- Compositor check for an invalid channel was incorrect.
- getting the center of selected verts used an uninitalized z axis.
- do_init_render_material() used && rather then & when testing for MA_TRANSP.
- weight paint activate flipped bone used && rather then & for flag checking.

9 years agomove camera lens/angle conversion to BLI_math
Campbell Barton [Sat, 17 Apr 2010 08:55:31 +0000 (08:55 +0000)]
move camera lens/angle conversion to BLI_math

9 years agoQuicktime audio export: force AAC sample rate to be <=48kHz to avoid later codec...
Damien Plisson [Sat, 17 Apr 2010 08:33:42 +0000 (08:33 +0000)]
Quicktime audio export: force AAC sample rate to be <=48kHz to avoid later codec error + potential quicktime mem leaks fixes

AAC Codec does not handle sample rates above 48kHz.

9 years agoPatch #21789 - BGE Keyboard and Mouse Python types - by Mitchell Stokes(Moguri)
Dalai Felinto [Sat, 17 Apr 2010 06:52:14 +0000 (06:52 +0000)]
Patch #21789 - BGE Keyboard and Mouse Python types - by Mitchell Stokes(Moguri)
The patch exposes mouse and keyboard read-only properties in the GameLogic module
Also renames bge.keys to bge.events (* Note: name of bge submodules (logic, render, ...) may change before 2.5 final release [right Campbell?]).

"""
This patch adds two new types to the BGE:
SCA_PythonKeyboard
SCA_PythonMouse

These two types allow users to make use of the keyboard and mouse without the need for a keyboard or mouse sensor.

SCA_PythonKeyboard has an events property that acts just like SCA_KeyboardSensor.events.

SCA_PythonMouse also has an events property to check for mouse events. Further more it supports getting and setting normalized cursor position (from 0.0 to 1.0) with SCA_PythonMouse.position. The cursor can be shown/hidden using SCA_PythonMouse.visible.
"""

Its use is similar with current mouse and keyboard controllers. With the exception of mouse position being normalized and writable as well (replacing Rasterizer.setMousePosition).

Code Sample:
######
from bge import logic, events

mouse = logic.mouse
keyboard = logic.keyboard

for key,status in keyboard.events:
    if status == logic.KX_INPUT_JUST_ACTIVATED:
        if key == events.WKEY:
            print(mouse.position)
            # move_forward()

mouse.visible = True # turn cursor visible
mouse.position = 0.5,0.5  # centralize mouse - use tuple
######

* Important Note: mouse.position still will not work properly for Letterbox mode.
In order to fix letterboxing I may need to move the set x,y mouse function to inside the canvas code (to avoid duplicated code between mouse sensor and bge.logic.mouse). I'll leave this for another commit though.
Thanks Mitchell for the work on that.

9 years agoPThreads "fix" for CMake / MSVC
Dalai Felinto [Fri, 16 Apr 2010 23:58:12 +0000 (23:58 +0000)]
PThreads "fix" for CMake / MSVC
I heard that the actual solution would be to remove #include <pthread.h> from BLI_threads.h
But in the mean time is not fair to CMake/MSVC to be the only system not building ;)

9 years agoAdded missing/better tooltips for Array modifier
Daniel Salazar [Fri, 16 Apr 2010 22:42:35 +0000 (22:42 +0000)]
Added missing/better tooltips for Array modifier

9 years ago-->Fix for compile on MSVC
Geoffrey Bantle [Fri, 16 Apr 2010 16:19:36 +0000 (16:19 +0000)]
-->Fix for compile on MSVC

Expansion of BASE_MATH_MEMBERS macro meant that
two consecutive semicolons were in the source in
most header files that used it.

9 years agofix for uv project modifier, broke when angle was removed.
Campbell Barton [Fri, 16 Apr 2010 15:19:55 +0000 (15:19 +0000)]
fix for uv project modifier, broke when angle was removed.

9 years agoadd the modules directory from the user scripts path (if it exists)
Campbell Barton [Fri, 16 Apr 2010 09:31:58 +0000 (09:31 +0000)]
add the modules directory from the user scripts path (if it exists)

9 years ago[#22045] Memory leak in Mathutils.Matrix
Campbell Barton [Fri, 16 Apr 2010 08:17:13 +0000 (08:17 +0000)]
[#22045] Memory leak in Mathutils.Matrix
own fault when adding mathutils callbacks, generic destructor didnt free the matrix accessor array, made the array apart of the matrix struct since its not worth malloc'ing to save at most 16bytes.

9 years agoFix [#21559] Loopcut and scale problem.
Matt Ebb [Fri, 16 Apr 2010 08:14:20 +0000 (08:14 +0000)]
Fix [#21559] Loopcut and scale problem.

Force mesh out of face select mode and into edge mode when doing loop cut -
it left an invalid edge selection in face mode, especially with edge slider afterwards.