10 years agoremove nan-makefiles
Campbell Barton [Sun, 30 Jan 2011 15:29:22 +0000 (15:29 +0000)]
remove nan-makefiles

10 years agoFix for object-space bumpmapping in GLSL. Fix provided
Ton Roosendaal [Sun, 30 Jan 2011 14:43:24 +0000 (14:43 +0000)]
Fix for object-space bumpmapping in GLSL. Fix provided
by Morten Mikkelsen in IRC.

10 years agoBugfix #25855
Ton Roosendaal [Sun, 30 Jan 2011 14:19:12 +0000 (14:19 +0000)]
Bugfix #25855

New bump code: option "Texture space" only works for image textures.
It appears this option is some kind of "fake normal map" actually.
Needs nicer name... maybe "Image space".

Now it ignores the option when no image texture is used.

10 years agoBugfix #25840
Ton Roosendaal [Sun, 30 Jan 2011 13:51:02 +0000 (13:51 +0000)]
Bugfix #25840

UI bug: when a button has an open menu, the menu closed on any
mouse-over of other buttons in this panel. That's not too bad,
but it didn't check for whether the mouse was already inside the
menu itself (respecting safety region).

The bug showed error on zoomed in UI, using FPS presets, in case
the menu-button was drawing aligned with other buttons. A real
boundary case... :)

10 years agoAnd here's a decent fix for correctly recognizing the the
Ton Roosendaal [Sun, 30 Jan 2011 13:12:03 +0000 (13:12 +0000)]
And here's a decent fix for correctly recognizing the the
.blend1 etc backups.
Proves again that lazy coders only make bad code :)

Implementation note:
The filewindow now recoginizes .blend version backups as
a special type, so filtering for .blend files themselves
ignores it. However, they're recognized correctly as valid
.blend files, and draw an icon as .blend file when filtering
is off. Can become a distinct icon if we want...

10 years agoStupid error in commit to allow .blend1 and .blend2 being dropped in
Ton Roosendaal [Sun, 30 Jan 2011 12:26:16 +0000 (12:26 +0000)]
Stupid error in commit to allow .blend1 and .blend2 being dropped in
window caused .blend itself to be not seen :) Mea Maxima Culpa!

10 years agoBetter property names for backdrop RNA
Daniel Salazar [Sun, 30 Jan 2011 07:04:12 +0000 (07:04 +0000)]
Better property names for backdrop RNA

10 years agoRNA for node editor backdrop zoom and offset. Thanks Moguri for help
Daniel Salazar [Sun, 30 Jan 2011 06:58:36 +0000 (06:58 +0000)]
RNA for node editor backdrop zoom and offset. Thanks Moguri for help

10 years agoAdded handy option to delete all vgroups in the dropdown menu
Daniel Salazar [Sat, 29 Jan 2011 23:51:42 +0000 (23:51 +0000)]
Added handy option to delete all vgroups in the  dropdown menu

10 years agoBugfix #25750
Ton Roosendaal [Sat, 29 Jan 2011 18:37:40 +0000 (18:37 +0000)]
Bugfix #25750

CTRL+L link modifiers (actually, it copies!) didn't call an update
for new dependencies.

10 years agoTodo item:
Ton Roosendaal [Sat, 29 Jan 2011 17:56:34 +0000 (17:56 +0000)]
Todo item:

When dropping image on an object, it now sets view to show texture in
solid view mode. Nicer interaction, and good for dummies & demos. :)

10 years agoTodo list fix: .blend backup files are recognized as such now;
Ton Roosendaal [Sat, 29 Jan 2011 17:47:22 +0000 (17:47 +0000)]
Todo list fix: .blend backup files are recognized as such now;
for drop inside Blender window and icons. (.blend1, .blend2, etc).

10 years agoBug report #25722
Ton Roosendaal [Sat, 29 Jan 2011 16:27:48 +0000 (16:27 +0000)]
Bug report #25722

Allowing IOR smaller than 1.0.
This is for people who want to trace air bubbles under water :)

10 years agoFixes for GLSL bump code; it was using calls not supported for
Ton Roosendaal [Sat, 29 Jan 2011 16:13:15 +0000 (16:13 +0000)]
Fixes for GLSL bump code; it was using calls not supported for
older GLSL versions (< 1.3)

Thanks Matthew M:
- adding mat3 from ma4 function
- removal of transpose()

And I've hacked in myself a textureSize() replacement, the image
size gets passed on to function now.

10 years agoISO C90 fix
M.G. Kishalmi [Sat, 29 Jan 2011 12:09:11 +0000 (12:09 +0000)]
ISO C90 fix

10 years agomatching 3Dview GLSL shaders for the new bumpmapping methods
M.G. Kishalmi [Sat, 29 Jan 2011 12:01:11 +0000 (12:01 +0000)]
matching 3Dview GLSL shaders for the new bumpmapping methods

10 years agonew bumpmapping options for the renderer
M.G. Kishalmi [Sat, 29 Jan 2011 11:56:11 +0000 (11:56 +0000)]
new bumpmapping options for the renderer
oldbump -> original
newbump -> compatible
 *new* -> default (3tap)
 *new* -> best quality (5tap)

the latter two have an option to apply bumpmapping in
 viewspace - much like displacement mapping
 objectspace - default (scales with the object)
 texturespace - much like normal mapping (scales)

10 years ago"Whole Character" KeyingSet Bugfix: RNA paths for custom properties
Joshua Leung [Sat, 29 Jan 2011 09:47:48 +0000 (09:47 +0000)]
"Whole Character" KeyingSet Bugfix: RNA paths for custom properties
were getting formed wrongly

Although the RNA paths for the custom properties could get evaluated
correctly, keyframe status highlights in buttons didn't always work
correctly, and would lead to a duplicate F-Curve for the same setting
getting created.

10 years agoCharacter Animation Goodie: "Whole Character" Builtin Keying Set
Joshua Leung [Sat, 29 Jan 2011 03:01:51 +0000 (03:01 +0000)]
Character Animation Goodie: "Whole Character" Builtin Keying Set

This commit introduces a new Keying Set: "Whole Character", which is
specially designed for character animators blocking out their
animation. It should make animating with rigs such as the Sintel rigs
(and other "mainstream" setups, though others may also work with a few
modifications) much easier.

It automatically determines which properties on every bone in the
active rig should be keyframed, avoiding an initial set up step where
properties may be missed, or non-animatable properties are also
needlessly keyframed. To do this, it relies on several rules:
1) All bones in the armature, regardless of visibility status are
considered, so that hiding some layers on some keyframes then
keyframing them later won't create problems with earlier poses
2) Bones starting with certain prefixes, i.e. DEF, MCH, VIS, etc. (the
full list is available in the code for this, and can be/is meant to be
modified by riggers in their own versions as they see fit), so that
some bones on hidden layers which shouldn't be seen by animators are
not keyframed
3) Locked transforms AREN'T keyframed
4) All custom properties ARE keyframed - currently this is the best we
can do, as it's hard to tell if they're needed or not, or even if
they're already driven.

10 years agoFix for [#25825] Boolean doesn't work in command-line rendering (2.56)
Janne Karhu [Fri, 28 Jan 2011 15:24:02 +0000 (15:24 +0000)]
Fix for [#25825] Boolean doesn't work in command-line rendering (2.56)
* DAG_on_load_update wasn't called at all for background rendering, so any non-animated object data wasn't updated properly.

10 years agoSmall feature request: using texture buttons (mapping) now updates
Ton Roosendaal [Fri, 28 Jan 2011 14:51:03 +0000 (14:51 +0000)]
Small feature request: using texture buttons (mapping) now updates
GLSL view of texture as well.

10 years agoFix for [#25843] Multiple Scene Strip in Sequencer, bad scrubbing for armatures in...
Janne Karhu [Fri, 28 Jan 2011 13:14:01 +0000 (13:14 +0000)]
Fix for [#25843] Multiple Scene Strip in Sequencer, bad scrubbing for armatures in viewport
* Sequencer didn't restore the scene properly after drawing a frame other than the current frame.

10 years agoFirst step towards having a 2-pass reading of COLLADA .dae files.
Nathan Letwory [Fri, 28 Jan 2011 12:56:30 +0000 (12:56 +0000)]
First step towards having a 2-pass reading of COLLADA .dae files.

10 years agoMake version check more future proof.
Nathan Letwory [Fri, 28 Jan 2011 08:51:15 +0000 (08:51 +0000)]
Make version check more future proof.

10 years agoFix for [#25713] VSE shows and renders wrong straight alpha gradient even after conve...
Janne Karhu [Fri, 28 Jan 2011 00:59:42 +0000 (00:59 +0000)]
Fix for [#25713] VSE shows and renders wrong straight alpha gradient even after convert to premul is checked
* Caching of the start and end stills were just referencing the original imbuf (which got premultiplied after the caching), so as a result most of the time the premul was applied twice.
* Now the start and end stills are stored in the cache as duplicates of the original (non modified) imbuf.

10 years agoIn the Timeline, keyframe lines are now drawn in front of the frame
Joshua Leung [Fri, 28 Jan 2011 00:52:31 +0000 (00:52 +0000)]
In the Timeline, keyframe lines are now drawn in front of the frame
indicator. This is so that it will be possible to see if there is a
keyframe on the current frame by just looking in the timeline.

10 years ago[#25783] Network rendering fails with windows paths
Martin Poirier [Fri, 28 Jan 2011 00:45:53 +0000 (00:45 +0000)]
[#25783] Network rendering fails with windows paths

Potential fix. Absolute windows path weren't detected as absolute on linux.

10 years ago[#25671] Network Render freezes/blocks blender
Martin Poirier [Fri, 28 Jan 2011 00:00:10 +0000 (00:00 +0000)]
[#25671] Network Render freezes/blocks blender

Decreasing timeout and increasing refresh period

10 years agoMore logical ordering of Empty draw types. Made Plain Axes default for
Daniel Salazar [Thu, 27 Jan 2011 21:05:01 +0000 (21:05 +0000)]
More logical ordering of Empty draw types. Made Plain Axes default for
new empties

10 years agoAnd on your left you can see something much nicer (while I fix this here on your...
Nathan Letwory [Thu, 27 Jan 2011 19:49:43 +0000 (19:49 +0000)]
And on your left you can see something much nicer (while I fix this here on your right).

10 years agoCommit to cope with API changes in OpenCOLLADA (latest for Windows right now r827).
Nathan Letwory [Thu, 27 Jan 2011 19:39:06 +0000 (19:39 +0000)]
Commit to cope with API changes in OpenCOLLADA (latest for Windows right now r827).

10 years agoSilly mistake in own previous commit, now we have particles again!
Janne Karhu [Thu, 27 Jan 2011 17:29:22 +0000 (17:29 +0000)]
Silly mistake in own previous commit, now we have particles again!

10 years agor34526 removed a line which had an unused return value but still needed to run.
Campbell Barton [Thu, 27 Jan 2011 12:36:48 +0000 (12:36 +0000)]
r34526 removed a line which had an unused return value but still needed to run.

10 years agoFixing some clang reported issues in particle code.
Janne Karhu [Thu, 27 Jan 2011 12:21:14 +0000 (12:21 +0000)]
Fixing some clang reported issues in particle code.
* Not really bugs, but some code cleanup and clarification.

10 years agofix for gcc 4.6 commit: this is needed for osx too.
Campbell Barton [Thu, 27 Jan 2011 11:17:23 +0000 (11:17 +0000)]
fix for gcc 4.6 commit: this is needed for osx too.

10 years agogcc 4.6 compatibility commit r34520 broke OSX, this should work now.
Campbell Barton [Thu, 27 Jan 2011 09:40:20 +0000 (09:40 +0000)]
gcc 4.6 compatibility  commit r34520 broke OSX, this should work now.

10 years agointernal changes, script writers won't notice.
Campbell Barton [Thu, 27 Jan 2011 06:48:14 +0000 (06:48 +0000)]
internal changes, script writers won't notice.
disable getattr metaclass forwarding attributes from the python class, eg: !=['foo']

... This was convenient but too tricky to properly maintain with attribute assignment and attributes defined within the class.
avoid doubles in dir() by converting to a set and then back to a list.

10 years agoBugfix [#25823] When objects are parented to the same objects that
Joshua Leung [Thu, 27 Jan 2011 01:29:40 +0000 (01:29 +0000)]
Bugfix [#25823] When objects are parented to the same objects that
they have some rotation-affecting constraint (i.e. Track To and Copy
Rotation) targetting, transforming the objects (directly, using GKEY
-> grab) becomes unreliable.

This was caused by a typo in some code checking for some
OB_NO_CONSTRAINTS under "flag" instead of "transflag"

10 years ago[#25815] Patch gcc 4.6
Campbell Barton [Thu, 27 Jan 2011 00:02:25 +0000 (00:02 +0000)]
[#25815] Patch gcc 4.6
with minor edits, made sure it works in CMake too.

10 years agoSilencing some annoying key-event prints in Win32 console:
Joshua Leung [Wed, 26 Jan 2011 23:58:20 +0000 (23:58 +0000)]
Silencing some annoying key-event prints in Win32 console:

The console was getting flooded with output like


all as a result of what looks like a debugging print. Whoever put this
in, you can get back your debugging prints by enabling BF_GHOST_DEBUG
in your local config :)

10 years agoBugfix [#25707] / Todo Item: "Local Space" for Object constraining
Joshua Leung [Wed, 26 Jan 2011 23:33:08 +0000 (23:33 +0000)]
Bugfix [#25707] / Todo Item: "Local Space" for Object constraining

For Constraints, there's now a working "Local" Space for Objects
without parents. This is defined as relative to the object's rotated
set of axes which results from rotation that gets set via "rotation"
transform properties.

I'm not sure whether this different behaviour between parented and
unparented objects will be too confusing (and thus require separate
settings + a round of version patching), so I'll wait until we get
proper testing from experienced riggers first.

10 years agoUsability issue noted while self-testing some stuff...
Joshua Leung [Wed, 26 Jan 2011 22:38:05 +0000 (22:38 +0000)]
Usability issue noted while self-testing some stuff...

Giving modifiers more descriptive tooltips for "Vertex Group" fields
than just the useless/meaningless "Vertex Group name" tooltip they
used to have.

10 years agoBullet-proofing mesh vertex group RNA wrapping, after double checking
Joshua Leung [Wed, 26 Jan 2011 22:31:14 +0000 (22:31 +0000)]
Bullet-proofing mesh vertex group RNA wrapping, after double checking
on whether vertexgroup weight animation worked

10 years agobge fix: debug text didn't have GL_DEPTH disabled - text got clipped when we have...
Dalai Felinto [Wed, 26 Jan 2011 22:16:58 +0000 (22:16 +0000)]
bge fix: debug text didn't have GL_DEPTH disabled - text got clipped when we have objects too close to the camera
fix only in embed bge, blenderplayer seems to be doing differently.
-- reported live by Mike Pan

10 years agoRemoving some old stuff from old animation system that isn't needed
Joshua Leung [Wed, 26 Jan 2011 22:01:51 +0000 (22:01 +0000)]
Removing some old stuff from old animation system that isn't needed
anymore (shapekeys stuff)

10 years ago"Bugfix" (otherwise known as another ZanQdo Feature Request)
Joshua Leung [Wed, 26 Jan 2011 21:58:32 +0000 (21:58 +0000)]
"Bugfix" (otherwise known as another ZanQdo Feature Request)

Shape Key point data can now be animated directly. That is, you can
animate the locations that each shape key defines.

10 years agoFix #25818: Text Editor holizontal grab inverted
Sergey Sharybin [Wed, 26 Jan 2011 21:00:52 +0000 (21:00 +0000)]
Fix #25818: Text Editor holizontal grab inverted

Stupid typo. Maybe it's a result of merging two patches related to this part of code.

10 years agoBug [#25696] Netrender feedback fails
Martin Poirier [Wed, 26 Jan 2011 20:09:30 +0000 (20:09 +0000)]
Bug [#25696] Netrender feedback fails

Patch by Wintch Analyzer

Someone change an attribute name and this wasn't updated

10 years agooption for blender --addons rigify,io_scene_fbx,add_mesh_gears
Campbell Barton [Wed, 26 Jan 2011 16:30:12 +0000 (16:30 +0000)]
option for blender --addons rigify,io_scene_fbx,add_mesh_gears
needed so ctest unit testing can be done on addons that are not enabled by default.

10 years agofix from andguent on irc, wasn't checking for property type.
Campbell Barton [Wed, 26 Jan 2011 16:21:54 +0000 (16:21 +0000)]
fix from andguent on irc, wasn't checking for property type.

10 years agofix for error in add mesh script with no operator passed.
Campbell Barton [Wed, 26 Jan 2011 14:52:00 +0000 (14:52 +0000)]
fix for error in add mesh script with no operator passed.

10 years agoPossible fix for issue #2 in [#25664] Remove Pack does not work in Texture panel
Campbell Barton [Wed, 26 Jan 2011 14:18:16 +0000 (14:18 +0000)]
Possible fix for issue #2 in [#25664] Remove Pack does not work in Texture panel
- There were 2 pack menu's, merged into 1.
- Don't attempt to unpack into // if the blend file isn't saved, would use the CWD instead.

10 years agoFix for [#25797] Hair partcle crash when vertexgroup length enabled
Janne Karhu [Wed, 26 Jan 2011 13:02:47 +0000 (13:02 +0000)]
Fix for [#25797] Hair partcle crash when vertexgroup length enabled
* Rounding errors could give vgroup weights of slightly over 1.0 to particles in some cases.

10 years agoAfter test, offset is better to be 0.001f (test in windows nvidia)
Ton Roosendaal [Wed, 26 Jan 2011 12:48:22 +0000 (12:48 +0000)]
After test, offset is better to be 0.001f (test in windows nvidia)

10 years agofix for crash when assigning unsupported type to collection properties.
Campbell Barton [Wed, 26 Jan 2011 12:44:09 +0000 (12:44 +0000)]
fix for crash when assigning unsupported type to collection properties.

10 years agoBugfix #25756
Ton Roosendaal [Wed, 26 Jan 2011 12:26:44 +0000 (12:26 +0000)]
Bugfix #25756

Outliner was drawing icons sometimes blurred. Happens when subpixel
positions vary. UI code doesn't suffer this, it makes own ortho for

This fix re-uses an un-used v2d flag (V2D_PIXELOFS_X) to force a 2d
view on pixel exact positions. It's set for outliner only, I need
testing feedback first.

10 years agoApply part of patch [#25612] Windows 7 icon progress bar
Nathan Letwory [Wed, 26 Jan 2011 12:23:02 +0000 (12:23 +0000)]
Apply part of patch [#25612] Windows 7 icon progress bar
Submitted by Alexander Kuznetsov.

This adds the progress bar to the taskbar item of Blender for Windows 7.
Small change in version retrieval, otherwise as is.

10 years agoApply multimonitor fix part of patch [#25612]
Nathan Letwory [Wed, 26 Jan 2011 12:19:19 +0000 (12:19 +0000)]
Apply multimonitor fix part of patch [#25612]
Submitted by Alexander Kuznetsov
Fixes [#23630] Negative OS screen coords not stored/used
Reported by Mort (mnme)

10 years agoShapeKeys RNA Wrapping: Code cleanup
Joshua Leung [Wed, 26 Jan 2011 10:46:43 +0000 (10:46 +0000)]
ShapeKeys RNA Wrapping: Code cleanup

Replaced some manual/inlined operations with their equivalents from
the listbase library funcs.

10 years ago- Clear rotation for objects now works on delta transforms too. The
Joshua Leung [Wed, 26 Jan 2011 10:25:15 +0000 (10:25 +0000)]
- Clear rotation for objects now works on delta transforms too. The
only case that doesn't fully work yet is the one where quats/axis-
angle are converted to eulers first.
- Fixed incorrect comment
- Removed obsolete "armature_clear" var from clear origin operator.
This was some ancient stuff from 2.4x code that ended up getting
ported across...

10 years agoRefactoring object clear-transform operators to remove out the common
Joshua Leung [Wed, 26 Jan 2011 09:27:43 +0000 (09:27 +0000)]
Refactoring object clear-transform operators to remove out the common
parts, like what was done for posechannel clear-transform operators
earlier. There shouldn't be any functional changes.

10 years agoupdate to background_job template to use --factory-startup option.
Campbell Barton [Wed, 26 Jan 2011 07:54:27 +0000 (07:54 +0000)]
update to background_job template to use --factory-startup option.
make all templates pep8 compliant.

10 years agocmake attempted fix before didnt work (I cant test on OSX), this should fix.
Campbell Barton [Wed, 26 Jan 2011 07:34:17 +0000 (07:34 +0000)]
cmake attempted fix before didnt work (I cant test on OSX), this should fix.

10 years agoAdding Calculate/Clear Motion Path operator buttons to toolbar. I'm
Joshua Leung [Wed, 26 Jan 2011 06:41:44 +0000 (06:41 +0000)]
Adding Calculate/Clear Motion Path operator buttons to toolbar. I'm
currently reviewing the UI for this, so more changes related to this
should be coming...

10 years agoAfter talking to Troy Sobotka, separated the time mapping UI a bit and added a label...
Daniel Salazar [Wed, 26 Jan 2011 06:08:26 +0000 (06:08 +0000)]
After talking to Troy Sobotka, separated the time mapping UI a bit and added a label. It should be less obscure now

10 years agomissed this when updating cmake files
Campbell Barton [Wed, 26 Jan 2011 04:48:37 +0000 (04:48 +0000)]
missed this when updating cmake files

10 years agoAdding Framerate preset patch by Troy Sobotka (sobotka). Small change to
Daniel Salazar [Tue, 25 Jan 2011 18:30:31 +0000 (18:30 +0000)]
Adding Framerate preset patch by Troy Sobotka (sobotka). Small change to
make Frame Old / Frame New remapping settings always visible as they
aren't really a part of framerate settings

10 years agoFix for [#25781] Bake cache for particles fails at end , ALT + A not
Janne Karhu [Tue, 25 Jan 2011 17:08:43 +0000 (17:08 +0000)]
Fix for [#25781] Bake cache for particles fails at end , ALT + A not
* Missing check for info frame (frame 0).

10 years agosmall internal cleanup, have matrix.scale_part() use same method to extract the scale...
Campbell Barton [Tue, 25 Jan 2011 16:32:41 +0000 (16:32 +0000)]
small internal cleanup, have matrix.scale_part() use same method to extract the scale as matrix.decompose()

10 years agouse cmake defined names for jpeg, png, zlib and python libs, building on *nix with...
Campbell Barton [Tue, 25 Jan 2011 14:43:13 +0000 (14:43 +0000)]
use cmake defined names for jpeg, png, zlib and python libs, building on *nix with non-standard libjpeg/png/zlib locations was broken.
in the case of python this makes it easier to move to find_package(PythonLibs) when 3.x is supported.

10 years agocmake maintenance, was missing 2 headers and made some minor improvements to cmake_co...
Campbell Barton [Tue, 25 Jan 2011 08:35:10 +0000 (08:35 +0000)]
cmake maintenance, was missing 2 headers and made some minor improvements to
also converted GHOST_SystemWin32.cpp to utf8.

10 years agoimprove unregister error check not to loop over parent classes properties (would...
Campbell Barton [Tue, 25 Jan 2011 07:31:11 +0000 (07:31 +0000)]
improve unregister error check not to loop over parent classes properties (would check the same property multiple times)

10 years agofix [#25748] Addons register parameters/functions more than once
Campbell Barton [Tue, 25 Jan 2011 06:54:57 +0000 (06:54 +0000)]
fix [#25748] Addons register parameters/functions more than once
- values were added to both the classes __dict__ as well as the internal StructRNA.
- made properties available from the type since this is where the python api assigns them:
>>> bpy.types.Scene.frame_start
<bpy_struct, IntProperty("frame_start")>
- rename RNA_struct_type_properties() -> RNA_struct_type_properties(), added RNA_struct_type_find_property()

10 years agoproperty lookups on structs was doing a listbase search even if the hash was defined.
Campbell Barton [Tue, 25 Jan 2011 05:45:21 +0000 (05:45 +0000)]
property lookups on structs was doing a listbase search even if the hash was defined.
since the property hash is maintained there is no reason for this, especially since the property could be in the StructRNA's parent class.

10 years agofix [#25778] Memoryblock Data from SCR: end corrupt
Campbell Barton [Tue, 25 Jan 2011 01:51:28 +0000 (01:51 +0000)]
fix [#25778] Memoryblock Data from SCR: end corrupt
 + other minor changes.

10 years agoTodo item: text editor does not honour continuous grab(see
Sergey Sharybin [Mon, 24 Jan 2011 18:21:55 +0000 (18:21 +0000)]
Todo item: text editor does not honour continuous grab(see

Added OPTYPE_GRAB_POINTER flag to scrolling operator, changed a bit logic of
delta calculation and removed unused members from TextScroll structure.

Got issue with very-fast mouse moving (when mouse pointer could go out of window,
but it's general issue for all grab operator).

Was unable to check MOUSEPAN event (two-finger scroll). Please poke me if
there are any issues with this event.

10 years agofix [#25757] Torus script uses radians for rotation in panel
Campbell Barton [Mon, 24 Jan 2011 15:25:03 +0000 (15:25 +0000)]
fix [#25757] Torus script uses radians for rotation in panel

10 years agoFix [#25715] [!] key doesn't work on french keyboard with Windows XP/7.\nSubmitted...
Nathan Letwory [Mon, 24 Jan 2011 14:37:10 +0000 (14:37 +0000)]
Fix [#25715] [!] key doesn't work on french keyboard with Windows XP/7.\nSubmitted by Eric Le Pape\n\nThe key sent VK_OEM_8, which wasn't handled at all. Added code to detect primary language and handle VK_OEM_8 specifically for certain layouts.

10 years agoTodo item: text editor scroll bar does not respond to clicks
Sergey Sharybin [Mon, 24 Jan 2011 10:10:50 +0000 (10:10 +0000)]
Todo item: text editor scroll bar does not respond to clicks

Text space's scroll bar now uses quite the same strategy of handling
drag and click events as view2d.

I tried to share some code between this two spaces. but there was no big
luck with it: text sace uses it's own constants (like scroll bas size and offsets),
so the simpliest way was to define zone stuff for text space without sharing it
with view2d.

10 years agofix [#25776] Crash when operator's bl_idname has more than one dot
Campbell Barton [Mon, 24 Jan 2011 05:15:14 +0000 (05:15 +0000)]
fix [#25776] Crash when operator's bl_idname has more than one dot

10 years agoRaise an exception when registering classes with ID names which are too long. (relate...
Campbell Barton [Mon, 24 Jan 2011 03:38:34 +0000 (03:38 +0000)]
Raise an exception when registering classes with ID names which are too long. (related to bug ), found while looking into bug [#25776].

10 years agono functional changes.
Campbell Barton [Mon, 24 Jan 2011 02:56:23 +0000 (02:56 +0000)]
no functional changes.
- remove unneeded casts to (char*) in interface code.
- replace strcmp(.., "") with checks on the first char of the string.

10 years agoSmall fix for text input buttons:
Ton Roosendaal [Sun, 23 Jan 2011 19:20:10 +0000 (19:20 +0000)]
Small fix for text input buttons:

Number buttons, in text input mode, now also align internally
like text buttons.

10 years agoBGE: option in the UI to start with the mouse cursor visible. Patch by Vitor Balbio...
Dalai Felinto [Sun, 23 Jan 2011 17:25:27 +0000 (17:25 +0000)]
BGE: option in the UI to start with the mouse cursor visible. Patch by Vitor Balbio, changes by me.
While we are more and more moving towards enabling features in the Python API, it's also important to have Logic Bricks working with no scripts.

This option allows you to start the game with the mouse cursor on (it's on Render Buttons). The defalt is still off (no do_version needed here).

10 years agoBGE: support modifiers without mapping to original mesh both graphically and physical...
Benoit Bolsee [Sun, 23 Jan 2011 17:17:21 +0000 (17:17 +0000)]
BGE: support modifiers without mapping to original mesh both graphically and physically, fixes bug #24942 and #25286.

Support for physics is done by skiping the modifiers that
don't support mapping to original mesh. This mapping is
required to report the hit polygon to the application
by the rayCast() function.

Support for graphics is done by using the same render
function that blender uses for the 3D view. This guantees
equal result.

Limitation: there is still a known bug if all these conditions are met:
- Display list enabled
- Old tex face with a several textures mapped to the same material
- no armature or shape keys
- active modifiers

In this case, only a part of the mesh will be rendered
with the wrong texture. To avoid this bug, use the GLSL
materials or make sure to have 1 material=1 texture in
your old tex face objects.

10 years agoSome ui reorganization of the physics tab:
Janne Karhu [Sun, 23 Jan 2011 14:04:31 +0000 (14:04 +0000)]
Some ui reorganization of the physics tab:
* Before the different simulations all had a panel with an "add this" button making the whole tab look really messy. It also rarely makes sense to have more than one or two physics things enabled for a single object, so having all the panels in the tab just added a great deal of visual clutter.
* Now there is a single "enable physics for" panel at the top that allows for enable/disable of any simulation. All actual physics panels are hidden until a simulation is enabled.
* There was no "add" button for force fields before, but I added a toggle between "none" and "force" to unify the ui even further.

10 years agoPanels that have the "no header" flag set are now always drawn first in a tab regardl...
Janne Karhu [Sun, 23 Jan 2011 13:52:24 +0000 (13:52 +0000)]
Panels that have the "no header" flag set are now always drawn first in a tab regardless of the order they were registered.
* This is a quick and simple workaround until we can define proper ordering for the panels.

10 years agoupdate testing md5's for changes in exporters.
Campbell Barton [Sun, 23 Jan 2011 13:34:36 +0000 (13:34 +0000)]
update testing md5's for changes in exporters.

10 years agocorrect own bad spelling
Campbell Barton [Sun, 23 Jan 2011 12:42:07 +0000 (12:42 +0000)]
correct own bad spelling

10 years ago- fix problem with cmake, windows 'RelWithDebInfo' target, was giving error: "ImportE...
Campbell Barton [Sun, 23 Jan 2011 11:42:29 +0000 (11:42 +0000)]
- fix problem with cmake, windows 'RelWithDebInfo' target, was giving error: "ImportError: No module named _socket" because of copying wrong files over.
- move test -> tests, this name is used elsewhere in lib/tests.
- change interface code not to loop on a float value (clang warning), harmless, but with extreme cases an eternal loop would still be possible though unlikely.

10 years agobugfix + minor mathutils.Vector edits.
Campbell Barton [Sun, 23 Jan 2011 08:37:34 +0000 (08:37 +0000)]
bugfix + minor mathutils.Vector edits.
- multiplying a 2D vector by a 3x3 or 4x4 matrix would use un-initialized memory, now throw an exception.
- use more variable length array BLI_math functions.

10 years agoLogic UI: ParentActuator fix + PropertyActuator tooltip improvement
Dalai Felinto [Sun, 23 Jan 2011 04:54:23 +0000 (04:54 +0000)]
Logic UI: ParentActuator fix + PropertyActuator tooltip improvement
ParentActuator: sub options only available when mode==setParent + deactive ghost option when compound is true (isntead of saying that in the tooltip)
PropertyActuator: I never knew that you could pass a property name to the Add and Assign options of the Property Actuator. Where it's by design or a side effect is cool. And a tooltip explaining that does help.

10 years agoOwn mistake in fluid particles ui cleanup commit.
Janne Karhu [Sat, 22 Jan 2011 21:22:29 +0000 (21:22 +0000)]
Own mistake in fluid particles ui cleanup commit.
* Emission tab was shown without particle settings.

10 years agoBug fix: pre 2.5 particles that were using old memory caching didn't load properly
Janne Karhu [Sat, 22 Jan 2011 21:13:29 +0000 (21:13 +0000)]
Bug fix: pre 2.5 particles that were using old memory caching didn't load properly
* Now the old cache is just freed so that new calculations can be done.
* The particle dynamics regression test files should display correctly now.

10 years ago"Fix" for [#25766] Fluid Particle Bugs
Janne Karhu [Sat, 22 Jan 2011 20:38:27 +0000 (20:38 +0000)]
"Fix" for [#25766] Fluid Particle Bugs
* Argh, particles tab was showing the whole "non applicable settings for fluid particles"-galore as the particle type "fluid" can't be checked from rna using the settings type value. Now the ui is a lot cleaner and only settings that actually effect the fluid particles are shown.

10 years agoSmall fix from the todo:
Ton Roosendaal [Sat, 22 Jan 2011 18:00:11 +0000 (18:00 +0000)]
Small fix from the todo:

"Modal cursors" now remain visible, until reset. These cursors
were reset already on edges. Example: 3d view toolbar, grease
pencil. Do note, only use WM_cursor_modal() on real modal tools,
and restore it at end.

10 years agoBugfix #25761
Ton Roosendaal [Sat, 22 Jan 2011 15:34:20 +0000 (15:34 +0000)]
Bugfix #25761

Move-to-layer in 3D window didn't work for linked library objects.
That should be possible, as was in 2.49. Layer property is local.

10 years agoFix for [#25664] Remove Pack does not work in Texture panel
Janne Karhu [Sat, 22 Jan 2011 14:44:04 +0000 (14:44 +0000)]
Fix for [#25664] Remove Pack does not work in Texture panel
* Unpack menu option "Remove Pack" didn't get a pointer to the image to be unpacked. This worked from image view by using the active image, but not from texture panel.

10 years agoTemporary fix for [#25735] Softbody don't work in linked groups, not generate cache
Janne Karhu [Sat, 22 Jan 2011 14:13:36 +0000 (14:13 +0000)]
Temporary fix for [#25735] Softbody don't work in linked groups, not generate cache
* The whole case of lib linking and pointcaches is not very well defined currently, but this fix sets the behavior of sb to the same as other physics currently.
* A proper fix will be easy to implement after a good physics baking ui is added.

10 years agoown fix r34446, was incorrect, fixed properly now.
Campbell Barton [Sat, 22 Jan 2011 04:40:15 +0000 (04:40 +0000)]
own fix r34446, was incorrect, fixed properly now.