blender.git
8 years agorename blenderlib to blender_add_lib
Campbell Barton [Wed, 22 Dec 2010 23:09:30 +0000 (23:09 +0000)]
rename blenderlib to blender_add_lib

8 years agoremove bullet CMakeLists.txt files, blender uses its own.
Campbell Barton [Wed, 22 Dec 2010 22:54:48 +0000 (22:54 +0000)]
remove bullet CMakeLists.txt files, blender uses its own.

8 years agoCompact -I paths in makefiles for more readble files/output.
Guillermo S. Romero [Wed, 22 Dec 2010 22:15:20 +0000 (22:15 +0000)]
Compact -I paths in makefiles for more readble files/output.
Also some white space cleaning and removal of redundant parameter.

8 years agoremove reload() from builtins since python3 no longer uses this.
Campbell Barton [Wed, 22 Dec 2010 21:39:48 +0000 (21:39 +0000)]
remove reload() from builtins since python3 no longer uses this.
use imp.reload now.

Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.

8 years agoFixed stupid typo with detecting corners of source mdisp.
Sergey Sharybin [Wed, 22 Dec 2010 21:38:06 +0000 (21:38 +0000)]
Fixed stupid typo with detecting corners of source mdisp.

Haven't noticed before because destination is a copy of source for now,
so there would be always the same count of corners.

8 years agoBugfix #25348
Ton Roosendaal [Wed, 22 Dec 2010 19:12:00 +0000 (19:12 +0000)]
Bugfix #25348

EdgeSlide: cancel didn't refresh UVs in mesh for cancelled
state. Also loopcut suffered this.

8 years agoReport #25350
Ton Roosendaal [Wed, 22 Dec 2010 18:46:54 +0000 (18:46 +0000)]
Report #25350

Loopcut check for deformed meshes was far too wide, it even disabled
loopcut on subsurfs.
Now added a check for armature/lattice only, and only give a warning,
not a return from the tool.

8 years ago== text editor templates ==
Luca Bonavita [Wed, 22 Dec 2010 18:43:21 +0000 (18:43 +0000)]
== text editor templates ==

- adding template of a add_object addon from Florian Meyer (testscreenings)
- this template is using the new add_utils module in bf-extensions (also from Florian)

8 years agoIRC fix: removing material slot from Object didn't refresh 3D correct.
Ton Roosendaal [Wed, 22 Dec 2010 17:38:08 +0000 (17:38 +0000)]
IRC fix: removing material slot from Object didn't refresh 3D correct.
Missing ID tag update.

8 years agoRelated to previous commit: Custom shapes for Bones now increase user
Ton Roosendaal [Wed, 22 Dec 2010 16:44:28 +0000 (16:44 +0000)]
Related to previous commit: Custom shapes for Bones now increase user
counter for linked objects.

8 years agoBug fix, IRC, patch provided by Dan Eicher
Ton Roosendaal [Wed, 22 Dec 2010 16:33:13 +0000 (16:33 +0000)]
Bug fix, IRC, patch provided by Dan Eicher

Custom bone shape link/unlink now respects ID user counting.

8 years agoAudio: Function to get channel count of a sound, for [#25062] Sound Actuator - Positi...
Joerg Mueller [Wed, 22 Dec 2010 16:07:57 +0000 (16:07 +0000)]
Audio: Function to get channel count of a sound, for [#25062] Sound Actuator - Positional Audio.

8 years agosvn merge -r 33849:33848 [overcommitted due to the server problems we had early today]
Dalai Felinto [Wed, 22 Dec 2010 15:10:42 +0000 (15:10 +0000)]
svn merge -r 33849:33848 [overcommitted due to the server problems we had early today]

8 years agoBugfix, IRC, textures or displacement on metaballs didnt work.
Ton Roosendaal [Wed, 22 Dec 2010 14:43:24 +0000 (14:43 +0000)]
Bugfix, IRC, textures or displacement on metaballs didnt work.
Commit 32361 from Campbell made quite a silly optimize mistake...

ver->orco= orco+=3;

Which is of course not:

ver->orco= orco; orco+=3;

Triple tsk!

8 years agoComplement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] wrong when...
Dalai Felinto [Wed, 22 Dec 2010 14:21:46 +0000 (14:21 +0000)]
Complement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
Porting the fix when Fullscreen flag is on (~ scene.gm->fullscreen)
I still see some issues with that, a difference between width/height. To be addressed later.

8 years agoComplement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] wrong when...
Dalai Felinto [Wed, 22 Dec 2010 14:20:22 +0000 (14:20 +0000)]
Complement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
Porting the fix when Fullscreen flag is on (~ scene.gm->fullscreen)
I still see some issues with that, a difference between width/height. To be addressed later.

8 years agohide the play-reversed button if using JACK + A/V sync
M.G. Kishalmi [Wed, 22 Dec 2010 11:37:56 +0000 (11:37 +0000)]
hide the play-reversed button if using JACK + A/V sync
(jack doesn't support reversed playback)

hey team, I'm the new guy.
proud to be on board! =)

8 years agoAudio:
Joerg Mueller [Wed, 22 Dec 2010 10:51:34 +0000 (10:51 +0000)]
Audio:

* Improve Jack Transport responsiveness.
* Added minor error checking to OpenAL.

8 years agobugfix [#25252] X3D Export does not specify ImageTexture to go with provided TextureC...
Campbell Barton [Wed, 22 Dec 2010 10:44:31 +0000 (10:44 +0000)]
bugfix [#25252] X3D Export does not specify ImageTexture to go with provided TextureCoordinate data

x3d material support is primitive but at least export first image texture found, similar to how texface is treated at the moment.

8 years agoFix for [#25339] Rendering Fluid's Float Particals cause crash when utilizng raytracing
Janne Karhu [Wed, 22 Dec 2010 09:30:13 +0000 (09:30 +0000)]
Fix for [#25339] Rendering Fluid's Float Particals cause crash when utilizng raytracing
* Fluidsim particles hadn't really been working at all for who knows how long, even in viewport!

8 years agobugfix [#25335] crash with file, console told me to report! svn 33836
Campbell Barton [Wed, 22 Dec 2010 02:28:06 +0000 (02:28 +0000)]
bugfix [#25335] crash with file, console told me to report! svn 33836
view rotate precision was lost over time, make view3d rotate normalize rv3d->viewquat.

note, this no longer crashes blender, just prints.
also commented some RegionView3D struct members.

8 years agobugfix [#25332] X3D export fails to export complete file
Campbell Barton [Wed, 22 Dec 2010 00:30:22 +0000 (00:30 +0000)]
bugfix [#25332] X3D export fails to export complete file

8 years agoBetter info text for particle edit
Janne Karhu [Tue, 21 Dec 2010 20:25:37 +0000 (20:25 +0000)]
Better info text for particle edit
* Response to [#25314] Baked Particles point cache can not be editing in Particle Mode if Disk Cache option is enabled.

8 years agoFix for [#25325] Timeline doesn't show status of baked psys until frame is advanced
Janne Karhu [Tue, 21 Dec 2010 20:18:43 +0000 (20:18 +0000)]
Fix for [#25325] Timeline doesn't show status of baked psys until frame is advanced
* Timeline didn't listen to file read notifier, so the pointcache frames indicator didn't get updated.
* Also added listens to particle & modifier (cloth, sb & smoke) notifiers as changes that cleared a pointcache weren't shown directly in the timeline either.
* The timeline display was also always one frame behind the actual state, since the notifiers are handled before the actual dynamics are calculated.
** This is now fixed too, by creating the actual drawn data always at drawtime.

8 years agoBugfix #25330
Ton Roosendaal [Tue, 21 Dec 2010 18:55:49 +0000 (18:55 +0000)]
Bugfix #25330

3D Window: Snap to cursor or grid, didn't respect the 'restrict location'
options for objects or bones.

8 years agoError/Warning report flipping.
Ton Roosendaal [Tue, 21 Dec 2010 15:10:09 +0000 (15:10 +0000)]
Error/Warning report flipping.

An operator Error throws up a menu, a Warning only a flashy header print.
In mesh editmode the menus for simple failures got very annoying, like
"Already a face" for Fkey on a face.

Proposal is to use warning for contextual failures, like:
- wrong selection
- unsupported combination
- wrong modes

And use errors for cases you really need user attention, for example when
issues are invisble or potentially damaging work.
- Memory failures
- Files not found

List can grow in future :) let's test this for mesh now.
I'll tackle this for other ops later after review.

(Also changed: loopcut disabled when editmode shows deformed result)

8 years agorename addlisttolist() to BLI_movelisttolist()
Campbell Barton [Tue, 21 Dec 2010 14:49:34 +0000 (14:49 +0000)]
rename addlisttolist() to BLI_movelisttolist()
name was misleading because the list items were removed from the source list.
(no functional changes)

8 years agoMacro Operators now pass on reports to the Mother Op!
Ton Roosendaal [Tue, 21 Dec 2010 14:08:58 +0000 (14:08 +0000)]
Macro Operators now pass on reports to the Mother Op!
(errors for macros were not shown)

8 years agobugfix [#24469] Cannot add keyframes on custom properties in IDPropertyGroups
Campbell Barton [Tue, 21 Dec 2010 11:40:12 +0000 (11:40 +0000)]
bugfix [#24469] Cannot add keyframes on custom properties in IDPropertyGroups

8 years agoFix [#24359] Collada: end bone zero size, mysterious extra empty
Nathan Letwory [Tue, 21 Dec 2010 10:43:47 +0000 (10:43 +0000)]
Fix [#24359] Collada: end bone zero size, mysterious extra empty
Reported by Thomas Larsson
Fix by Jeroen Bakker

Fix max length of leaf bone and remove empty.

8 years agoFix [#25319] COLLADA import segfaults on maya model
Nathan Letwory [Tue, 21 Dec 2010 09:41:02 +0000 (09:41 +0000)]
Fix [#25319] COLLADA import segfaults on maya model
Reported by Michael Williamson
Fixed by Jeroen Bakker

Wrong UV index was being used.

8 years agoPlugging up some memory leaks in the Blenderplayer that I found with valgrind
Mitchell Stokes [Tue, 21 Dec 2010 06:58:44 +0000 (06:58 +0000)]
Plugging up some memory leaks in the Blenderplayer that I found with valgrind

8 years agobetter make_quiet.sh filter with threaded builds.
Campbell Barton [Tue, 21 Dec 2010 04:55:46 +0000 (04:55 +0000)]
better make_quiet.sh filter with threaded builds.

8 years agofix for cmake flag detection, was not caching the resulting variable so the test...
Campbell Barton [Tue, 21 Dec 2010 03:32:51 +0000 (03:32 +0000)]
fix for cmake flag detection, was not caching the resulting variable so the test ran each time.
also cache SSE, SSE2 checks.

8 years agoWorkaround for blenderplayer not linking on linux with scons.
Nathan Letwory [Tue, 21 Dec 2010 00:21:42 +0000 (00:21 +0000)]
Workaround for blenderplayer not linking on linux with scons.

Maybe as a next big, uncool project would be: solve bad level calls.

8 years agomodified fix for commits r33811, 33812.
Campbell Barton [Mon, 20 Dec 2010 23:26:29 +0000 (23:26 +0000)]
modified fix for commits r33811, 33812.

- SSS Presets were not working on pinned materials.
- added ability for save-presets to define variables to stop them becoming too verbose.
- remove object.active_node_material

8 years agouse uppercase for axis chars, used in BLI_math and other parts of blender.
Campbell Barton [Mon, 20 Dec 2010 23:21:33 +0000 (23:21 +0000)]
use uppercase for axis chars, used in BLI_math and other parts of blender.

8 years agoFix #25315: Curve points keyframe changes made in edit mode get lost
Sergey Sharybin [Mon, 20 Dec 2010 19:47:16 +0000 (19:47 +0000)]
Fix #25315: Curve points keyframe changes made in edit mode get lost

ED_curve_updateAnimPaths now updates fcurves from animation data rather than
from local copy of curves: nurb and point index from keyIndex data gets
updated in this function and for correct handling undo stuff copy of
fcurves is stored in UndoCurve.

Additional changes:
- Revert of rev33640 and more proper fix: do not copy remained
  spline-related rna fcurves after renaming pathes but all the rest
  fcurves woulddbe copied back to animation data
- Refresh graph and dopesheet editor after updating animation data

8 years agoBugfix #25308
Ton Roosendaal [Mon, 20 Dec 2010 19:09:22 +0000 (19:09 +0000)]
Bugfix #25308

Border or other selection tools didn't redraw action editor, when
option "only show selected" was set. Was missing area tagging.

8 years agoSmall UI fix
Ton Roosendaal [Mon, 20 Dec 2010 18:57:59 +0000 (18:57 +0000)]
Small UI fix

Image texture "repeat" options now greay out when not active.
Thanks Mario Kishalmi for the patch :)

8 years agoBugfix #25312
Ton Roosendaal [Mon, 20 Dec 2010 18:54:32 +0000 (18:54 +0000)]
Bugfix #25312

"Make Local" option "Objects and Data" made materials get
lost on save, the tagging was incorrect. Now it makes
Materials local too.

Implementation note: the code is new (not 2.4) so it misses
some of the hairy goodies we had. It's something for another
time to really make this reliably work.

8 years agoBugfix, own collection:
Ton Roosendaal [Mon, 20 Dec 2010 18:29:32 +0000 (18:29 +0000)]
Bugfix, own collection:

File Window draw error:
On start Blender in smaller sized window, a scalled down screen
causes the File Window main area to draw too high, clipping off
half of the top line. This case (scroll horizontal only) is not
handled as view2d type.

8 years agoFix for last own commit: missed mode check in addvert_Nurb, so
Sergey Sharybin [Mon, 20 Dec 2010 17:42:17 +0000 (17:42 +0000)]
Fix for last own commit: missed mode check in addvert_Nurb, so
blender was crashing when user tries to extrude (with e-button)
when nothing was selected.

8 years agoBugfix #25313
Ton Roosendaal [Mon, 20 Dec 2010 15:39:00 +0000 (15:39 +0000)]
Bugfix #25313

Outliner "show active" now also works for elements hidden in
closed items. (Coordinates were not set)

8 years agoBugfix: new strict code for UI_make_axis_color() caused constraint
Ton Roosendaal [Mon, 20 Dec 2010 13:57:52 +0000 (13:57 +0000)]
Bugfix: new strict code for UI_make_axis_color() caused constraint
lines in Transform to not draw.

8 years ago3D ortho view: the axes lines of grid had wrong color for X.
Ton Roosendaal [Mon, 20 Dec 2010 13:32:26 +0000 (13:32 +0000)]
3D ortho view: the axes lines of grid had wrong color for X.
Thanks Mario Kishalmi for the report :)

8 years agoBugfix: material SSS presets now copy correctly to the displayed
Ton Roosendaal [Mon, 20 Dec 2010 13:03:03 +0000 (13:03 +0000)]
Bugfix: material SSS presets now copy correctly to the displayed
material (in case it has nodes)

8 years agoBugfix #25301
Ton Roosendaal [Mon, 20 Dec 2010 13:02:33 +0000 (13:02 +0000)]
Bugfix #25301

Material Node trees:
SSS wasn't displaying in Nodes.

Implementation notes:
- Currently copying local data for preview render, only copies
  the base material. Node materials are re-used.
- This causes data to be in 2 "main" databases... complex.
- To make it work for preview, I had to add another loop in the
  SSS code that checks the original Main dbase. That's marked
  as warning in code to be fixed up.

Another bug:
- Material properties "SSS presets" copied settings to the
  active material, not to the displayed one. Added RNA call
  to retrieve this from Objects.

(Next commit will fix preset scripts)

8 years agoBugfix #25307
Ton Roosendaal [Mon, 20 Dec 2010 11:33:52 +0000 (11:33 +0000)]
Bugfix #25307

Node shaders + textures, showing in Texture properties, with option
"show both previews" had bad ID checking.

8 years agosimple make wrapper to give quiet output. (more like nan-makefiles)
Campbell Barton [Mon, 20 Dec 2010 11:21:29 +0000 (11:21 +0000)]
simple make wrapper to give quiet output. (more like nan-makefiles)

8 years agoBugfix #25309
Ton Roosendaal [Mon, 20 Dec 2010 11:08:29 +0000 (11:08 +0000)]
Bugfix #25309

Code cleanup to allow switching active output nodes in Compositor
made shader nodes output not set correctly.

Now you can have multiple output nodes in shaders too, and switch
on click-activate.

8 years agoMisleading defaults for smoke flow particle system:
Janne Karhu [Mon, 20 Dec 2010 10:23:23 +0000 (10:23 +0000)]
Misleading defaults for smoke flow particle system:
* Show unborn was on by default, so smoke got emitted from all particles regardless of their birth time, not a good default in my opinion.
* What made things worse was that particles weren't shown in viewport, so you didn't even know the particles were considered alive from the very first frame! (Not rendering is a good default, but they should still be visible in viewport!)

8 years agofix [#25313] Outliner View Active only works once icon has been shown in view.
Campbell Barton [Mon, 20 Dec 2010 09:51:18 +0000 (09:51 +0000)]
fix [#25313] Outliner View Active only works once icon has been shown in view.
also disable UNDO and REGISTER flags for OUTLINER_OT_show_active() since its just scrolling the view.

8 years agohigher precision for wright & radius button.
Campbell Barton [Mon, 20 Dec 2010 09:46:30 +0000 (09:46 +0000)]
higher precision for wright & radius button.

8 years agochange the resolution for new surfaces to 4x4, since 12x12 used to be the total numbe...
Campbell Barton [Mon, 20 Dec 2010 07:45:24 +0000 (07:45 +0000)]
change the resolution for new surfaces to 4x4, since 12x12 used to be the total number of subdivisions along the U/V of the nurbs surface but now its multiplied by the number of segments.

8 years agobugfix [#25310] Twice applied modifier with Convert to mesh with several multi-user...
Campbell Barton [Mon, 20 Dec 2010 07:21:08 +0000 (07:21 +0000)]
bugfix [#25310] Twice applied modifier with Convert to mesh with several multi-user objects

8 years agobugfix [#25238] Render image window edits UV's
Campbell Barton [Mon, 20 Dec 2010 05:26:25 +0000 (05:26 +0000)]
bugfix [#25238] Render image window edits UV's

8 years agofix [#25283] Edge length display difficult to read
Campbell Barton [Mon, 20 Dec 2010 03:59:22 +0000 (03:59 +0000)]
fix [#25283] Edge length display difficult to read
- made theme colors for mesh edge len & face angle/area display.
- use %g rather then %f for float display, trims unneeded zeros.
- store cached 2d and 3d text color as bytes rather then floats, compare when drawing to avoid setting the context.
- use unsigned char for more color functions, avoids casting to glColorubv().

8 years agoApply [#25297] Fix for [#23765]
Nathan Letwory [Sun, 19 Dec 2010 20:40:52 +0000 (20:40 +0000)]
Apply [#25297] Fix for [#23765]
Bug reported by alarionfirn
Patch submitted by Jeroen Bakker

It took the read the N+N of the uv-layer, it should be the Nth uv layer.

8 years agoApply [#25296] Fix for [#24636]
Nathan Letwory [Sun, 19 Dec 2010 20:23:30 +0000 (20:23 +0000)]
Apply [#25296] Fix for [#24636]
Bug reported by Dominique Lorre
Fix submitted by Jeroen Bakker

When importing COLLADA files, the name of a custom data layer can be longer than 32 bytes. Make sure only 32 bytes are copied.

8 years agoBugfix #25301
Ton Roosendaal [Sun, 19 Dec 2010 20:12:12 +0000 (20:12 +0000)]
Bugfix #25301

Preview render for node shaders broke, caused by localizing
materials last week, to prevent thread crashes. Fixed now.
Also added a temp fix to draw color-management corrected
node previews default. Will follow scene setting tomorrow.

Also: SSS in nodes doesn't render yet. Was issue in 2.4 too...

8 years agoMade ctrl-point curve extruding more consistent with mesh edit mode:
Sergey Sharybin [Sun, 19 Dec 2010 19:22:17 +0000 (19:22 +0000)]
Made ctrl-point curve extruding more consistent with mesh edit mode:
when nothing is selected but active spline is set or when "middle"
control point is selected new spline would be created.

Nothing wull happen when there is no selection and no active spline
due to it's unclear which kind of spline should be added.

8 years agoPatch from Dan to use id user functions rather then accessing direct. also use warnin...
Campbell Barton [Sun, 19 Dec 2010 16:34:58 +0000 (16:34 +0000)]
Patch from Dan to use id user functions rather then accessing direct. also use warning fix using const for RNA_parameter_set() arg.

8 years agoCMake RelWithDebInfo uses python31.dll, not python31_d.dll
Campbell Barton [Sun, 19 Dec 2010 16:09:24 +0000 (16:09 +0000)]
CMake RelWithDebInfo uses python31.dll, not python31_d.dll

8 years agoTodo item:
Ton Roosendaal [Sun, 19 Dec 2010 15:03:27 +0000 (15:03 +0000)]
Todo item:

Compositor: if you have multiple Composite-Out nodes, a click will
activate it for use. Just like viewer nodes.

8 years agoTodo item: (Luca report in IRC)
Ton Roosendaal [Sun, 19 Dec 2010 14:39:36 +0000 (14:39 +0000)]
Todo item: (Luca report in IRC)

Pulldown and other popup menus: this button type exits on release.
While holding mouse you then can move around, but the highlight of button
didn't disappear if you were outside item. The menu then doesn't close
when you release the mouse.
Now highlight goes on/off on mouse moves to show this better.

Implementation note: menu items are coded similar to regular activate
buttons (like for tools). There's no provision to make highlights go
to the next item while holding mouse in menus. That I rather not mess
with now.

8 years agoAnother single-user case: the ID buttons (browse, name, users),
Ton Roosendaal [Sun, 19 Dec 2010 14:07:50 +0000 (14:07 +0000)]
Another single-user case: the ID buttons (browse, name, users),
click on user-number 'make single user' now also makes animation
local.

8 years agoFix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
Joerg Mueller [Sun, 19 Dec 2010 13:56:02 +0000 (13:56 +0000)]
Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart

8 years agoOption "Make Single user" now also makes animations local.
Ton Roosendaal [Sun, 19 Dec 2010 13:50:31 +0000 (13:50 +0000)]
Option "Make Single user" now also makes animations local.
Note that the menu option "Animation" only was working for
Object level animations, so I've changed the many name
accordingly.

8 years agoPy UI fix: options for "Single user" had different names than the operator itself.
Ton Roosendaal [Sun, 19 Dec 2010 13:48:45 +0000 (13:48 +0000)]
Py UI fix: options for "Single user" had different names than the operator itself.

8 years agofix for own error [#25299] custom properties not showing in viedw3d panel
Campbell Barton [Sun, 19 Dec 2010 13:04:14 +0000 (13:04 +0000)]
fix for own error [#25299] custom properties not showing in viedw3d panel
error made when fixing id pinning, for non-properties space.

8 years agobug [#25292] No undo scale with sculpt mode
Campbell Barton [Sun, 19 Dec 2010 12:38:20 +0000 (12:38 +0000)]
bug [#25292] No undo scale with sculpt mode
applies to project paint too, added with comment.

8 years agouser report renaming file fails, print the errno error message.
Campbell Barton [Sun, 19 Dec 2010 12:32:33 +0000 (12:32 +0000)]
user report renaming file fails, print the errno error message.

8 years agoBugfix #25288
Ton Roosendaal [Sun, 19 Dec 2010 11:39:55 +0000 (11:39 +0000)]
Bugfix #25288

SSS preview render didn't happy.
Was caused by using a Material copy for preview renders (to prevent
crashing in other cases). There were actually 2 errors:
- material copy should be added to preview-main database
- the render was invoked using wrong main database even!

8 years agoBugfix [#25298] Nasty group cycle that creates crash blend files is
Joshua Leung [Sun, 19 Dec 2010 10:38:02 +0000 (10:38 +0000)]
Bugfix [#25298] Nasty group cycle that creates crash blend files is
allowed

Infinite recursion (manisfesting as a crash) occurred when trying to
set the dupli-group setting on an object, when the object is a member
of the group being set. Added a check and warning for this in RNA to
prevent such setups from occurring in future.

Todo:
The warning report is currently only printed to console as I can't
quite remember how to grab reports pointer without context/operator
pointer available.

8 years agoBugfix #25292
Ton Roosendaal [Sun, 19 Dec 2010 09:41:41 +0000 (09:41 +0000)]
Bugfix #25292

In sculpt mode, Object transform still worked, which was:
1) Not undo-able (sculpt undo stack)
2) Clearing the entire sculpt undo stack on operator redo
3) Had keymap conflict for R

Simply added check for this case and return trans operator.

8 years agoanother reason to run makesrna needlessly every build is that the makesrna binary...
Campbell Barton [Sun, 19 Dec 2010 08:48:15 +0000 (08:48 +0000)]
another reason to run makesrna needlessly every build is that the makesrna binary is newer then the generated files.

8 years agobugfix [#25289] X3D export generates incorrect direction for SpotLight
Campbell Barton [Sun, 19 Dec 2010 07:40:08 +0000 (07:40 +0000)]
bugfix [#25289] X3D export generates incorrect direction for SpotLight

8 years ago fix for make-dupli-face operator & vector multiplication, tab/space error in last...
Campbell Barton [Sun, 19 Dec 2010 07:14:42 +0000 (07:14 +0000)]
 fix for make-dupli-face operator & vector multiplication, tab/space error in last commit.

8 years agobugfix [#25290] Align on text gives a traceback
Campbell Barton [Sun, 19 Dec 2010 07:05:29 +0000 (07:05 +0000)]
bugfix [#25290] Align on text gives a traceback
       [#25284] Traceback error on "System Info" script

- Align was only working on mesh objects, now operate on all objects, missing boundbox's are treated as single points.
- obj.bound_box was returning all nan's for object types with no boundbox.
- ENUM_FLAG type enums were showing no text when displayed in operator redo panel.

8 years ago[#25278] Ctrl-left click in beizer edit mode with no selection results
Joshua Leung [Sun, 19 Dec 2010 01:59:52 +0000 (01:59 +0000)]
[#25278] Ctrl-left click in beizer edit mode with no selection results
in crash.

This commit fixes the crash (missing null check for nu==NULL).

However, there is still a problem here with Curve Ctrl-Click not
behaving the same as Mesh EditMode Ctrl-Click, which adds a new vert
no matter what (i.e. no previous selection required). Then again,
that's a separate "todo" issue, so we can close this report now :)

8 years agoFix compilation, obvious typo.
Guillermo S. Romero [Sun, 19 Dec 2010 01:55:07 +0000 (01:55 +0000)]
Fix compilation, obvious typo.

8 years agoBugfix [#25221] Jump to Next/Prev keyframe doesn't work with
Joshua Leung [Sun, 19 Dec 2010 01:27:32 +0000 (01:27 +0000)]
Bugfix [#25221] Jump to Next/Prev keyframe doesn't work with
RotoBeizer

The jump to keyframes operator was being a bit too strict with its
checks for where it should check for keyframes.

In this particular case, RotoBezier keyframes were on Curve AnimData,
so the check for Object AnimData would return false, thus overlooking
this possibility. However, it should be safe enough to just open
things up a bit more.

8 years agoBugfix [#25291] Objects that should not have subsurface modifier have
Joshua Leung [Sun, 19 Dec 2010 01:14:57 +0000 (01:14 +0000)]
Bugfix [#25291] Objects that should not have subsurface modifier have
it (eg cameras)

When trying to add a modifier to non-geometry objects, warnings are
now shown instead of just adding some (useless) modifiers that cannot
be removed later.

8 years agoPointcache frame markers in timeline look a bit nicer if they are aligned exactly...
Janne Karhu [Sat, 18 Dec 2010 21:19:55 +0000 (21:19 +0000)]
Pointcache frame markers in timeline look a bit nicer if they are aligned exactly on frames.

8 years agoMistake in previous own commit, checking the wrong cache frame.
Janne Karhu [Sat, 18 Dec 2010 21:16:37 +0000 (21:16 +0000)]
Mistake in previous own commit, checking the wrong cache frame.

8 years agoFILTER="^\[[ 0123456789][ 0123456789][ 0123456789]\%] \|Linking \(C\|CXX\) static...
Ton Roosendaal [Sat, 18 Dec 2010 18:56:21 +0000 (18:56 +0000)]
FILTER="^\[[ 0123456789][ 0123456789][ 0123456789]\%] \|Linking \(C\|CXX\) static library\|Building \(C\|CXX\) object \|Built target "

Bugfix #25280

Image: sequence option was hardcoded to assume "first frame" was always
picture "001". Made it impossible to have a sequence of images starting
with picture like "000"

Note that by allowing to render a first frame as 000 in Blender, things
mess up a bit here. Things work now as follows:

- Start Frame = 1 : Image 001 on frame 1
- Start Frame = 0 : Image 001 on frame 0
- Start Frame =-1 : Image 000 on frame 0 ;)

This is of course the lack of proper control for image sequences.
Definite something to work on; best idea I have now is a new setting
that defines the Image Number to be "first frame". That way you can
map that number on any Blender frame. Or it makes it more confusing? :)

For the doc department: the proper meaning of "Start Frame" now is:

"The blender frame a sequence starts playing, assuming the sequence
starts with image #1"

Tooltop was fixed accordingly

(Also fixed 'remove doubles' to show more precision in toolbar)

8 years agoBug fix: some file browser buttons didn't return filename even though they were suppo...
Janne Karhu [Sat, 18 Dec 2010 16:52:17 +0000 (16:52 +0000)]
Bug fix: some file browser buttons didn't return filename even though they were supposed to
* It working before was actually a bug that got fixed by ton in r33663.
* Now the property subtype is correct and things work like they should.

8 years agoExtreme makeover of pointcache code:
Janne Karhu [Sat, 18 Dec 2010 15:03:31 +0000 (15:03 +0000)]
Extreme makeover of pointcache code:
* Pointcache code was quite ugly looking and complicated, so here are mostly just cosmetic adjustments, but some improved logic also.
* Slight cleanup of pointcache ui too.
* Shouldn't have any functional changes what so ever, so poke me right away if something seems off.

8 years agoFix for [#25282] Crash when weting initial mesh pressets with a smoke simulation
Janne Karhu [Sat, 18 Dec 2010 09:46:52 +0000 (09:46 +0000)]
Fix for [#25282] Crash when weting initial mesh pressets with a smoke simulation

8 years agoFix for mistake in own commit
Janne Karhu [Sat, 18 Dec 2010 09:32:27 +0000 (09:32 +0000)]
Fix for mistake in own commit
* Was a bit too eager to clean up, so all particles got reset when changing a particle value when animation was playing.

8 years agoworkaround for build system dependency hell, fixed for cmake + makefiles (probably...
Campbell Barton [Sat, 18 Dec 2010 09:27:08 +0000 (09:27 +0000)]
workaround for build system dependency hell, fixed for cmake + makefiles (probably other buildsystems too).

makesrna was often generating source every build, but not updating the files because the contents wasn't changed.

this happened because makefiles would check makesrna.c and rna_*.c files were newer then rna_*_gen.c and force a re-generation.

Now ensure updating the files even if they dont change when makesrna.c or rna_*.c are newer then rna_*_gen.c files.

Another solution for this would be to run makesrna program for each C file for finer grained deps.
or remove file comparison checks but that would mean a change to any rna_*.c file would rebuild all.

8 years ago- Rename operator "Set Curve Radius" to "Set Curve Weight" to "Set Goal Weight"
Sergey Sharybin [Sat, 18 Dec 2010 09:18:39 +0000 (09:18 +0000)]
- Rename operator "Set Curve Radius" to "Set Curve Weight" to "Set Goal Weight"
  as it was in 2.49 (functionality of this operator hasn't changed, but it's
  quite confusing name)
- Documentation for some curve operators

8 years agofix [#25262] Keyboard shortcut presets can't be made because of wrong folder
Campbell Barton [Sat, 18 Dec 2010 07:22:52 +0000 (07:22 +0000)]
fix [#25262] Keyboard shortcut presets can't be made because of wrong folder
New create option when getting a user resource for creating paths.
  bpy.utils.user_resource(type, path, create=False)

8 years agoFix for moving caret to the line beginning/ending when word-wrapping is enabled
Sergey Sharybin [Fri, 17 Dec 2010 20:24:13 +0000 (20:24 +0000)]
Fix for moving caret to the line beginning/ending when word-wrapping is enabled

8 years agoFix #25272: shrinkwrap with dependency cycle could lead to eternal
Brecht Van Lommel [Fri, 17 Dec 2010 20:13:54 +0000 (20:13 +0000)]
Fix #25272: shrinkwrap with dependency cycle could lead to eternal
loop and increasing memory usage.

Modifiers should never call mesh_get_derived_final or similar, only
use ob->derivedFinal if it exists, if the dependencies are set correct
and there are no cycles, it will be there.

8 years agoFix #25263: Text cursor click point is random.
Sergey Sharybin [Fri, 17 Dec 2010 19:58:02 +0000 (19:58 +0000)]
Fix #25263: Text cursor click point is random.

- Fixed some wierd cursor placements when clicking in special text position
  (mostly when line segments had null-terminator at the max allowed position)
- Also subtract top padding, so centering is looks a bit better

8 years agoDrag & drop feature:
Ton Roosendaal [Fri, 17 Dec 2010 19:05:34 +0000 (19:05 +0000)]
Drag & drop feature:
You now can drop a .blend inside blender window to open it.

Implementation notes:
- Added call to extract icon type for files. Code re-used from
  space_file
- External files that get dropped set icon types too.
  Drop box polls can check for this.
- Also enabled setting op-context for drop operators, this was
  needed to prevent filewindow to open.

8 years agoremove some paranoid NULL checks, since the pointers are used already.
Campbell Barton [Fri, 17 Dec 2010 19:05:10 +0000 (19:05 +0000)]
remove some paranoid NULL checks, since the pointers are used already.

8 years ago[#25270] X3D Export generates incorrect location for Lamp
Campbell Barton [Fri, 17 Dec 2010 18:38:44 +0000 (18:38 +0000)]
[#25270] X3D Export generates incorrect location for Lamp
was actually incorrect location for everything!

- x3d's global scene rotation value wasnt converted from deg to radians.
- camera viewport was also incorrectly exported.

use mathutils rather then inline math for rotations.