10 years ago== blender icon ==
Luca Bonavita [Wed, 5 Jan 2011 20:18:16 +0000 (20:18 +0000)]
== blender icon ==

I've been asked by Giuseppe Ghibò (joeghi) for more icons for Mandriva Linux distro.
I've noticed that some folders had a blender.svg different from the one in scalable/, so made them all the same derived from

Now each svg file has "document properties" of the right dimensions according to the folder it's in, and the svg is saved so that people
just have to press "export bitmap" in Inkscape in case they need it.

10 years agoSVN maintenance.
Guillermo S. Romero [Wed, 5 Jan 2011 19:19:49 +0000 (19:19 +0000)]
SVN maintenance.

10 years agoBugfix, irc report:
Ton Roosendaal [Wed, 5 Jan 2011 18:12:54 +0000 (18:12 +0000)]
Bugfix, irc report:

Outliner: using the object-data icons to enter editmode, didn't
reset the toolbar Operator redo. It was not using an operator
call here. Note to self: more outliner tools don't...

Error was that operator-redo then would repeat an action incorrect.

10 years agoTodo item: brought transform texture space back.
Ton Roosendaal [Wed, 5 Jan 2011 17:27:26 +0000 (17:27 +0000)]
Todo item: brought transform texture space back.
Code changes are minimal, re-using the code as already was there.

Options are in pulldown menu, or SHIFT+T and SHIFT+ALT+T

Might be that Martin likes to see it different... do we need
a special operatortype for it?

10 years agoGet rid of uninitialized variable and malicios derived mesh relising.
Sergey Sharybin [Wed, 5 Jan 2011 15:58:44 +0000 (15:58 +0000)]
Get rid of uninitialized variable and malicios derived mesh relising.
Pointer by llvn analyzer.

10 years agoremove ED_retopo.h
Campbell Barton [Wed, 5 Jan 2011 15:37:36 +0000 (15:37 +0000)]
remove ED_retopo.h

10 years agoTodo item:
Ton Roosendaal [Wed, 5 Jan 2011 15:10:35 +0000 (15:10 +0000)]
Todo item:

Object color option now is incorporated in preview render, and
in display in 3D window.

Note that Object-color is "modulating" the render result, it just
multiplies... which is very limited for practical use. This was
added for Apricot game project. The original meaning however was
to replace diffuse only... so specular and light work still correct.

ALso made header for properties editor start on top, to reflect
default (report in tracker).

10 years agobugfix [#25393] Export to X3D does not provide color field in indexedFaceSet for...
Campbell Barton [Wed, 5 Jan 2011 14:57:57 +0000 (14:57 +0000)]
bugfix [#25393] Export to X3D does not provide color field in indexedFaceSet for colored cube

mostly rewrote mesh export and added support for multiple materials/images, using texface or material images depending on the materials TexFace option.

10 years agoPatch: [#22524] Update Windows Recent Documents on Open/Save
Andrea Weikert [Wed, 5 Jan 2011 14:56:10 +0000 (14:56 +0000)]
Patch: [#22524] Update Windows Recent Documents on Open/Save
Slightly modified to better fit in architecture (moved to related GHOST SystemPaths)
Thanks to Harley Acheson for the research and for providing the original patch.

Note: I added empty function for X11(Linux) and Mac (Carbon and Cocoa) to be implemented still.

10 years agofix for py/rna mesh.materials[:] where empty materials exist, would raise a runtime...
Campbell Barton [Wed, 5 Jan 2011 14:49:08 +0000 (14:49 +0000)]
fix for py/rna mesh.materials[:] where empty materials exist, would raise a runtime exception.
problem was there was no way to tell the difference between getting an empty item from a collection or the item not being found.

10 years agoFix #23604: external shadows for volume materials don't work
Brecht Van Lommel [Wed, 5 Jan 2011 14:20:48 +0000 (14:20 +0000)]
Fix #23604: external shadows for volume materials don't work

10 years agoToDo: long outstanding patch to allow access to system paths in background mode
Andrea Weikert [Wed, 5 Jan 2011 14:00:14 +0000 (14:00 +0000)]
ToDo: long outstanding patch to allow access to system paths in background mode
Thanks Damien Plisson for contributing the Carbon and Cocoa implementation

10 years agoMaterial slots: on adding a new one, the material datablock is now copied again
Brecht Van Lommel [Wed, 5 Jan 2011 13:15:29 +0000 (13:15 +0000)]
Material slots: on adding a new one, the material datablock is now copied again
like in 2.4x. This can result in material datablocks you don't need, but not
doing it seems to cause too much confusion.

10 years agoFix #25316: distorted subsurf UV in some cases. To counter distortion at seams,
Brecht Van Lommel [Wed, 5 Jan 2011 12:04:06 +0000 (12:04 +0000)]
Fix #25316: distorted subsurf UV in some cases. To counter distortion at seams,
we add extra creasing in the UV mesh, to keep it from shrinking, leading to
distorted UVs, but this wasn't always working right, so tweaked the conditions.

10 years agoMarker Bugfixes ("Make Links to Scene" operator):
Joshua Leung [Wed, 5 Jan 2011 11:15:57 +0000 (11:15 +0000)]
Marker Bugfixes ("Make Links to Scene" operator):

Some tweaks for this operator, found while scanning through the
current state of the markers code. These seem to be correct judging
from the overall direction the code is going in, though the intention
of this operator seems a bit unclear from the naming.

- Fixed potential issue where with only some markers selected (and the
last one selected not being the last marker in the source scene), you
could end up chaining the source and destination marker lists together
- Clarified description/error messages...

10 years agoFixing bugs in future:
Ton Roosendaal [Wed, 5 Jan 2011 10:54:30 +0000 (10:54 +0000)]
Fixing bugs in future:

DNA reconstruct now terminates strings, when the new string
in a file is longer than in current definition. This will
enable a safer ID and other name lengthening, keeping at
least some forward compitability.

10 years agoTodo item: linked curve objects behaves incorrect with modifiers
Sergey Sharybin [Wed, 5 Jan 2011 10:40:38 +0000 (10:40 +0000)]
Todo item: linked curve objects behaves incorrect with modifiers

Use object's displists for storing deformed tesselated curve. Was unable to
totally get rid of curve's displist because of how texture space is calculating.

10 years agoEnable sndfile by default on win64
Nathan Letwory [Wed, 5 Jan 2011 09:00:28 +0000 (09:00 +0000)]
Enable sndfile by default on win64

10 years agoFix for [#25492] Cached particles are killed too early
Janne Karhu [Wed, 5 Jan 2011 08:52:13 +0000 (08:52 +0000)]
Fix for [#25492] Cached particles are killed too early
* Own mistake from the sph particle fluids fix.

10 years agoBugfix #25494: Lattice keyframes can't be selected in dopesheet
Joshua Leung [Wed, 5 Jan 2011 08:31:05 +0000 (08:31 +0000)]
Bugfix #25494: Lattice keyframes can't be selected in dopesheet

Oops.. missed one place

10 years agouse x3d Group's rather then IndexedFaceSets to re-use objects.
Campbell Barton [Wed, 5 Jan 2011 07:14:26 +0000 (07:14 +0000)]
use x3d Group's rather then IndexedFaceSets to re-use objects.

10 years agoX3D export
Campbell Barton [Wed, 5 Jan 2011 06:58:52 +0000 (06:58 +0000)]
X3D export
- last commit broke export
- more removal of not used functions.
- use twoside mesh setting rather then face flag.
- simplify transformations.

10 years agore-arrange x3d mesh export funcs in preparation for fixing [#25393]
Campbell Barton [Wed, 5 Jan 2011 06:29:43 +0000 (06:29 +0000)]
re-arrange x3d mesh export funcs in preparation for fixing [#25393]

10 years agoX3D Export,
Campbell Barton [Wed, 5 Jan 2011 05:53:41 +0000 (05:53 +0000)]
X3D Export,
- mesh creaseAngle was being exported as degrees, should be radians.
- remove unused vars & code.
- indenting was using a for loop, can just multiply a string instead.

10 years agopy api function to tag all ID blocks, was available in 2.4x as.
Campbell Barton [Wed, 5 Jan 2011 05:33:27 +0000 (05:33 +0000)]
py api function to tag all ID blocks, was available in 2.4x as. = True

But this was only useful for setting so make it a function for 2.5x.

X3D: use tagging rather then a name dictionary, this fixes a bug where library name overlaps could mix up names.

10 years agopep8 cleanup.
Campbell Barton [Wed, 5 Jan 2011 03:22:46 +0000 (03:22 +0000)]
pep8 cleanup.

10 years agoedits for BPY_extern.h functions, no functional changes
Campbell Barton [Wed, 5 Jan 2011 02:08:54 +0000 (02:08 +0000)]
edits for BPY_extern.h functions, no functional changes
- remove unused code.
- BPY_run_python_script() split in 2, BPY_filepath_exec, BPY_text_exec
- renamed funcs.

10 years agoRemoved a call to glPopMatrix that had no corresponding glPushMatrix.
Nicholas Bishop [Wed, 5 Jan 2011 02:08:27 +0000 (02:08 +0000)]
Removed a call to glPopMatrix that had no corresponding glPushMatrix.

10 years agoAdding overhead drawing (frame rate, profile, debug props) capabilities back to the...
Mitchell Stokes [Wed, 5 Jan 2011 01:34:33 +0000 (01:34 +0000)]
Adding overhead drawing (frame rate, profile, debug props) capabilities back to the Blenderplayer by replacing commented out BMF_* functions with BLF_* equivalents.

10 years agoAnimation data for lattices is now shown in the Animaton Editors
Joshua Leung [Wed, 5 Jan 2011 00:37:21 +0000 (00:37 +0000)]
Animation data for lattices is now shown in the Animaton Editors

10 years agoBGE: Font Object support to animated (object) colors
Dalai Felinto [Tue, 4 Jan 2011 21:27:44 +0000 (21:27 +0000)]
BGE: Font Object support to animated (object) colors
implemented the support for animated colors and a workaround for non animated colors. To be cleaned if/when this bug is fixed:
[#25487] BGE: Object Color only works when it has a keyed frame

* also increased the size of the text. Now it supports 280 (or 140 unicode) chars.

10 years agoNote sure if this file is used still... named it 2.56a v2.56a
Ton Roosendaal [Tue, 4 Jan 2011 17:53:02 +0000 (17:53 +0000)]
Note sure if this file is used still... named it 2.56a

10 years agoFixed readme.html only went to the tag branch, now in trunk.
Ton Roosendaal [Tue, 4 Jan 2011 17:49:43 +0000 (17:49 +0000)]
Fixed readme.html only went to the tag branch, now in trunk.

10 years agoDon't commit with compiling first ;)
Ton Roosendaal [Tue, 4 Jan 2011 16:39:05 +0000 (16:39 +0000)]
Don't commit with compiling first ;)

10 years agoTodo item: notifiers sent from Material changes invoked Compositor
Ton Roosendaal [Tue, 4 Jan 2011 16:31:36 +0000 (16:31 +0000)]
Todo item: notifiers sent from Material changes invoked Compositor
jobs. Now proper checks have been added, also for texture nodes.

10 years agofix [#25388] Export to X3D generates texture fields in X3D file for objects
Campbell Barton [Tue, 4 Jan 2011 15:25:12 +0000 (15:25 +0000)]
fix [#25388] Export to X3D generates texture fields in X3D file for objects
use vertex color paint setting to export vertex colors when a material is assigned.

10 years agotodo item:
Ton Roosendaal [Tue, 4 Jan 2011 15:19:16 +0000 (15:19 +0000)]
todo item:

Files saved with image-window composite preview panel still
rendered cropped, but theres no way to disable it. Now it
ignores cropping.

10 years agoTodo item:
Ton Roosendaal [Tue, 4 Jan 2011 14:59:55 +0000 (14:59 +0000)]
Todo item:

New option to start threaded wmJobs, with flag WM_JOB_SUSPEND.
This makes the job wait 1 timer step before running.

Used now for Material Icon render renders, which makes the
big preview to be always rendered first while using UI.

10 years agoCrease tool brush missed brush color changing depends on brush appearance.
Sergey Sharybin [Tue, 4 Jan 2011 14:55:29 +0000 (14:55 +0000)]
Crease tool brush missed brush color changing depends on brush appearance.

10 years agoFix #25483: Brush appearance color
Sergey Sharybin [Tue, 4 Jan 2011 14:46:29 +0000 (14:46 +0000)]
Fix #25483: Brush appearance color

Set special brush flag when inversion stroke was started, not wery nice, but
we can't make better with current events system implementation.

10 years agoTodo items:
Ton Roosendaal [Tue, 4 Jan 2011 14:37:21 +0000 (14:37 +0000)]
Todo items:

- File Window: when opened with operator (save, load, etc), you
  couldn't start a new one, causing memleaks. Now it nicely
  refreshes file window for new operator.
  Also means you can make CTRL+F3 screenies of filewindow now.
- CTRL+F3 screenshot had memleak on cancel.

10 years agoBugfix #25486
Ton Roosendaal [Tue, 4 Jan 2011 13:10:46 +0000 (13:10 +0000)]
Bugfix #25486

MedtaBall editmode, 3D window, menu "Select" had an error, unknown
operator for select/deselect. Fix provided by Jonathan Smith

10 years agocomment assert and ensure meshes are always calculated with CD_MASK_BAREMESH, scene...
Campbell Barton [Tue, 4 Jan 2011 12:31:42 +0000 (12:31 +0000)]
comment assert and ensure meshes are always calculated with CD_MASK_BAREMESH, scene->customdata_mask should be corrected in background mode but for now this is ok.

10 years agofix for makesrna error on windows where files cant be removed when open.
Campbell Barton [Tue, 4 Jan 2011 10:37:22 +0000 (10:37 +0000)]
fix for makesrna error on windows where files cant be removed when open.

10 years agoprint a message if the file cant be removed, may help narrow down why there are probl...
Campbell Barton [Tue, 4 Jan 2011 10:28:37 +0000 (10:28 +0000)]
print a message if the file cant be removed, may help narrow down why there are problems with MSVC at the moment.

10 years ago- use BKE_keyingset_free_path where paths were being freed inline.
Campbell Barton [Tue, 4 Jan 2011 08:56:25 +0000 (08:56 +0000)]
- use BKE_keyingset_free_path where paths were being freed inline.
- rna_path was being freed when null, printing errors.

10 years agono need to define betz in editcurve.c, replace ob_get_key with inline check for anim...
Campbell Barton [Tue, 4 Jan 2011 08:00:16 +0000 (08:00 +0000)]
no need to define betz in editcurve.c, replace ob_get_key with inline check for anim filter code.

10 years agoFix to make two-side texface option work with modifiers in the BGE. However, there...
Mitchell Stokes [Tue, 4 Jan 2011 07:43:32 +0000 (07:43 +0000)]
Fix to make two-side texface option work with modifiers in the BGE. However, there appear to be some issues when a mesh has mixed two-side and non two-side faces. I think it's a problem in the converter and possibly related to this bug:

10 years agoFixed malicious selection checking in make segment operator.
Sergey Sharybin [Tue, 4 Jan 2011 07:32:26 +0000 (07:32 +0000)]
Fixed malicious selection checking in make segment operator.
Thanks to Campbell and CLang :)

10 years agoFixing Grease Pencil typo noted while scanning through Mike Erwin's
Joshua Leung [Tue, 4 Jan 2011 06:28:44 +0000 (06:28 +0000)]
Fixing Grease Pencil typo noted while scanning through Mike Erwin's
GSoC10 work. Cheers Mike for catching this!

Also removing the use of sqrt() as noted in a "todo" comment there...

10 years agoNo functional changes. Just formatting cleanups for now...
Joshua Leung [Tue, 4 Jan 2011 06:18:58 +0000 (06:18 +0000)]
No functional changes. Just formatting cleanups for now...

10 years agoGrease Pencil: Redo for sketching sessions now works
Joshua Leung [Tue, 4 Jan 2011 05:57:05 +0000 (05:57 +0000)]
Grease Pencil: Redo for sketching sessions now works

10 years agoFix bug #25471
Xavier Thomas [Tue, 4 Jan 2011 04:56:27 +0000 (04:56 +0000)]
Fix bug #25471

10 years agoGrease Pencil Todos: "Sketching Sessions"
Joshua Leung [Tue, 4 Jan 2011 03:14:01 +0000 (03:14 +0000)]
Grease Pencil Todos: "Sketching Sessions"

Due to popular request and usability considerations, this commit
reintroduces functionality similar to 2.4's "Draw Mode" for Grease

In the toolbar under the Draw/Line/Eraser buttons, you can find the
"Use Sketching Sessions" toggle, which enables this feature. This is a
per-scene setting, and defaults to off, so that the current 2.5
behaviour is still the default (i.e. the Grease Pencil operator will
only do a single stroke at a time).

With this option enabled, drawing with Grease Pencil will enter a
semi-modal state where you can draw multiple strokes without needing
to keep holding the DKEY throughout (though you'll still need to do so
to start the strokes, unless you use some toolbar buttons), while
still being able to manipulate the viewport. Header help-text prints
show the appropriate keybindings (i.e. press ESCKEY or ENTER to end
the sketching session).

- To aid maintainability of the 3D-View toolbar code, I've taken the
liberty to factor out the groups of widgets which commonly occur in
most of the toolbars into separate functions (namely "Repeat" and
"Grease Pencil"). Perhaps it might make it slightly harder to newbies
to the toolbar code to grasp, though the physics panels are far worse
- I've reshuffled some code in the Grease Pencil code to separate out
the various states of operation again more clearly, though some more
work is still needed there (TODO)
- There can now be only one Grease Pencil operator running at a time
- Redoing Grease Pencil operations where sketching sessions was
enabled still needs work. Namely, a way of delimiting the set of
points recorded into strokes is still needed (TODO)
- Ultimately, it should be possible to switch tools midway through a
session. Currently sessions are limited to only being able to be used
with a single drawing mode (TODO)
- After ending a drawing session, the titlebar contols may not work on
Windows without manually making the main window lose focus and then
regain (i.e. click on some other window in toolbar, then come back).
This may be related to (bug #25480)

10 years agoMemory for bevelSplitFlag wasn't duplicated in copy_displist.
Sergey Sharybin [Mon, 3 Jan 2011 19:45:08 +0000 (19:45 +0000)]
Memory for bevelSplitFlag wasn't duplicated in copy_displist.
Also corrected memory allocation comment for this array.

10 years agoBugfix, own collection
Ton Roosendaal [Mon, 3 Jan 2011 18:57:13 +0000 (18:57 +0000)]
Bugfix, own collection

Graph editor: sliding Nkey Properties to left, closing curves view
entirely, was hanging in eternal loop. Caused by division by zero.

10 years agofix for crash when some classes didnt register properly (this included loading sintel...
Campbell Barton [Mon, 3 Jan 2011 18:15:15 +0000 (18:15 +0000)]
fix for crash when some classes didnt register properly (this included loading sintel.blend).

10 years agoTodo item:
Ton Roosendaal [Mon, 3 Jan 2011 18:14:10 +0000 (18:14 +0000)]
Todo item:

2D view scrollers were drawing over background contents, making it
look somewhat messy (like for text, nodes, fcurves). Now it clears
first the back in the region edge.

10 years agoImage window Scopes (P key): the 4th "line histogram" was not
Ton Roosendaal [Mon, 3 Jan 2011 17:37:37 +0000 (17:37 +0000)]
Image window Scopes (P key): the 4th "line histogram" was not
initialized on 100 pixels height on creation.

10 years agoUser pref button for 'drag threshold'
Ton Roosendaal [Mon, 3 Jan 2011 17:01:08 +0000 (17:01 +0000)]
User pref button for 'drag threshold'

10 years agoTodo item
Ton Roosendaal [Mon, 3 Jan 2011 17:00:49 +0000 (17:00 +0000)]
Todo item

Drag/drop now has a User preset for dragging threshold.
Noticed this was set to 3 pixels even, made it 5 as default.
Tablet owners can put it larger too :)

Note: the tweak-threshold (3d win) is 10 pixels now, I think
this needs another preset too, leave this for now.

Also: fixed crash in filewindow: drag .blend icon and drop it.
You can't test anything in Blender or you get a bug :)

10 years agoPorted back import BVH as Empties, uses delta transformations.
Campbell Barton [Mon, 3 Jan 2011 16:22:30 +0000 (16:22 +0000)]
Ported back import BVH as Empties, uses delta transformations.
& small pep8 changes.

10 years agoTodo: Material nodes
Ton Roosendaal [Mon, 3 Jan 2011 15:50:08 +0000 (15:50 +0000)]
Todo: Material nodes

- On each re-render, the node image was cleared. Skipping this gives
  nicer pictures
- Node render was using AA, but unfortunately only 1 sample for Nodes
  is being stored. Disable AA render for now, nice speedup too.

10 years agoTodo items:
Ton Roosendaal [Mon, 3 Jan 2011 14:36:44 +0000 (14:36 +0000)]
Todo items:

- New Node editor now opens with larger view, the default
  was like zoomed in factor 2.
- Add node via menu now shows new node more visible
- Click on (material) node now doesn't re-render the entire
  tree anymore, much nicer.
- Duplicate node creates preview image immediate

10 years agofix for linking on msvc with own recent changes.
Campbell Barton [Mon, 3 Jan 2011 14:30:59 +0000 (14:30 +0000)]
fix for linking on msvc with own recent changes.

10 years agorename layout.red_alert to alert, may be themeable some day.
Campbell Barton [Mon, 3 Jan 2011 13:33:07 +0000 (13:33 +0000)]
rename layout.red_alert to alert, may be themeable some day.

10 years agocheck modifier keys are not pressed when using keys as accelerators, it meant you...
Campbell Barton [Mon, 3 Jan 2011 13:13:54 +0000 (13:13 +0000)]
check modifier keys are not pressed when using keys as accelerators, it meant you couldn't copy the operator from a menu with Ctrl+C because C would be used to activate an item.

10 years agoBugfix #25457
Ton Roosendaal [Mon, 3 Jan 2011 12:48:16 +0000 (12:48 +0000)]
Bugfix #25457

After loading file, the Undo-push happened too early, causing an
undo for the first action to show animated setups wrong.

(material.c: removed old crap)

10 years agoDAG_id_tag_update was being called with non object ID's and OB_RECALC_* flags which...
Campbell Barton [Mon, 3 Jan 2011 12:41:16 +0000 (12:41 +0000)]
DAG_id_tag_update was being called with non object ID's and OB_RECALC_* flags which only apply to objects. harmless but misleading.

10 years agoBugfix #25471
Ton Roosendaal [Mon, 3 Jan 2011 12:13:48 +0000 (12:13 +0000)]
Bugfix #25471

Scopes widgets in Image Editor (Pkey) could be dragged to zero size.
Now limit is 20. Thanks Mario Kishalmi for patch!

10 years agofix for own error with mathutils.geometry argument parsing.
Campbell Barton [Mon, 3 Jan 2011 12:11:05 +0000 (12:11 +0000)]
fix for own error with mathutils.geometry argument parsing.
also raise ValueError when the vector size is incorrect rather then type error.

10 years ago2.4x <-> 2.5 Regression Fixes: Shapekey Problems
Joshua Leung [Mon, 3 Jan 2011 11:58:19 +0000 (11:58 +0000)]
2.4x <-> 2.5 Regression Fixes: Shapekey Problems

This commit partially fixes the problems with Shapekeys from older
files, as seen from the Regression suite (relative.blend and
dolphin.blend in particular).

In older files, keyblock->slidermax was never truly set to 1.0 even
though the UI may have shown such a value (which was bizzarely being
sourced from somewhere else). Hence, after loading the files in 2.5,
the shapekeys wouldn't animate, as the value would get clamped between
0 and 0.

To fix this, I've added a version patch which corrects these
situations in old files, and I've adjusted the slider-RNA code so that
it is not possible to set up such clamping anymore.

The fixes detailed here only make it possible for these files to work
again in 2.5. However, I haven't been able to find a way to get the
files to actually work in 2.5 without manually changing the active
shapekey (per object) after loading the files with these patches
applied. Possibly it's just some depsgraph magic needed, unless
there's still some other evil voodoo in the shapekey code

10 years agofix for [#25470] single property driver vars don't update
Campbell Barton [Mon, 3 Jan 2011 11:50:10 +0000 (11:50 +0000)]
fix for [#25470] single property driver vars don't update

10 years agoBugfix #25449
Ton Roosendaal [Mon, 3 Jan 2011 10:47:36 +0000 (10:47 +0000)]
Bugfix #25449

Adding surface objects via top menu crashed for option
"view aligned". Bad context checking.

10 years agorna/api
Campbell Barton [Mon, 3 Jan 2011 09:09:30 +0000 (09:09 +0000)]
move Object.update(...) to ID.update(). since depsgraph update function can now be called on ID types.

also changed how update flags work.

  obj.update(scene, 1, 1, 1)
... is now
  obj.update({'OBJECT', 'DATA', 'TIME'})

Don't pass scene anymore. This was used for recalculating text but I think this is better dont in a different function.

10 years agorecent change to keyframe menu broke BVH import, now don't use the operator at all...
Campbell Barton [Mon, 3 Jan 2011 08:28:22 +0000 (08:28 +0000)]
recent change to keyframe menu broke BVH import, now don't use the operator at all, instead assign the action manually.

Also added bpy.path.display_name_from_filepath(), since filepaths are not ensured to be utf8.
same as calling:  os.path.splitext(os.path.basename(name))[0].encode("utf8", "replace").decode("utf8")

10 years agoremove rna func scene.collada_export(), export functions dont exist for any other...
Campbell Barton [Mon, 3 Jan 2011 07:42:30 +0000 (07:42 +0000)]
remove rna func scene.collada_export(), export functions dont exist for any other formats, calling operators should suffice.

10 years agofix for own error in recent commit.
Campbell Barton [Mon, 3 Jan 2011 07:07:18 +0000 (07:07 +0000)]
fix for own error in recent commit.

10 years agodont draw lamp volume when its being used as the view camera, would flicker annoyingl...
Campbell Barton [Mon, 3 Jan 2011 06:45:47 +0000 (06:45 +0000)]
dont draw lamp volume when its being used as the view camera, would flicker annoyingly when flying the lamp about to position it.

10 years agoavoid int/float comparisons within a number of for loops in deep shadow map compression.
Campbell Barton [Mon, 3 Jan 2011 06:13:50 +0000 (06:13 +0000)]
avoid int/float comparisons within a number of for loops in deep shadow map compression.
gives minor overall speedup.

10 years agostubs.c updates for uiLayoutGetRedAlert and uiLayoutSetRedAlert
Mitchell Stokes [Mon, 3 Jan 2011 06:08:17 +0000 (06:08 +0000)]
stubs.c updates for uiLayoutGetRedAlert and uiLayoutSetRedAlert

10 years agoKeyframing Operator Code Cleanup:
Joshua Leung [Mon, 3 Jan 2011 05:36:52 +0000 (05:36 +0000)]
Keyframing Operator Code Cleanup:

Keyframing operators now use a dynamically-generated enum for their
"type" property, which determines the Keying Set to use for keyframing
instead of the obscure "index" values which were determined
internally. Internally though, these same indices are still being used

- I've kept the menu-building function and the special "menu" operator
for now, since it's better to not "pollute" the actual insert
keyframes operator with hardcoded menu-showing logic. Instead, the
menu operator does that, so that if you like, you could write another
such wrapper that works differently.
- The 'type' properties could have the PROP_HIDDEN flags removed,
though I think it's cleaner to leave these without this option for

10 years ago- add in asserts for unlikely cases of invalid ID types being assigned to key->from.
Campbell Barton [Mon, 3 Jan 2011 04:59:57 +0000 (04:59 +0000)]
- add in asserts for unlikely cases of invalid ID types being assigned to key->from.
- mode duplicate pointer/offset code into a static function.

10 years agofix for possible comparison of un-initialized variable.
Campbell Barton [Mon, 3 Jan 2011 04:46:37 +0000 (04:46 +0000)]
fix for possible comparison of un-initialized variable.
 vol_get_bounds() only runs when shi->flippednor==0, but is.hit.ob was being checked afterwards irrespective.

10 years agobugfix [#25459] Zooming out with view3d.zoom() crashes blender completely
Campbell Barton [Mon, 3 Jan 2011 01:26:54 +0000 (01:26 +0000)]
bugfix [#25459] Zooming out with view3d.zoom() crashes blender completely

10 years agoConstraints UI Tweak:
Joshua Leung [Sun, 2 Jan 2011 23:50:16 +0000 (23:50 +0000)]
Constraints UI Tweak:

Experimental tweak for the "Object Constraints" tab so that it now
shows a warning message instead of the "Add Constraints" button when
the active object is in Pose Mode. Hopefully this will further
alleviate any confusion over Object vs Bone level constraints.

While coding this, I noticed that we currently don't have any way of
making help-text labels in UI panels which can span multiple lines
(word-wrapped or manually split). Probably not a critical issue, but
it would be nice for completeness...

10 years ago"Red-Alert" flags can now be set on UI layouts via the RNA API too
Joshua Leung [Sun, 2 Jan 2011 23:47:48 +0000 (23:47 +0000)]
"Red-Alert" flags can now be set on UI layouts via the RNA API too

10 years agoBugfix:
Joshua Leung [Sun, 2 Jan 2011 23:47:03 +0000 (23:47 +0000)]

Setting the group for F-Curves from the Py-API (i.e. to move F-Curves
from one group to another) was failing. After debugging this, this
functionality should now work correctly, while still prohibiting the
setting of groups on "F-Curves that aren't in actions" (i.e. driver-

10 years agoFix #25456: using Live Unwrap always unwraps with method Angle Based.
Brecht Van Lommel [Sun, 2 Jan 2011 21:13:28 +0000 (21:13 +0000)]
Fix #25456: using Live Unwrap always unwraps with method Angle Based.

10 years agoBugfix #25446 (and todo item)
Ton Roosendaal [Sun, 2 Jan 2011 19:46:32 +0000 (19:46 +0000)]
Bugfix #25446 (and todo item)

The icons for materials were always lagging or not updating
at all. I also found it suspicious slow...
It appeared that the icons now store a "mip level", where for
every change in Materials 2 render jobs for icons were started,
one for 32x32 pix, one for 96x96. The latter was cancelling out
the first job almost always.

Also made preview renders detect size, to set amount of tiles
to be rendered. Small icons use 1 part, larger previews 16 now.

All in all, behaves much smoother now! But, will also update
the thread Jobs manager to allow "delayed jobs" like for icons,
these are aggressively put as first in the jobs list.

10 years agoSpelling fix: itterator->iterator
Sergey Sharybin [Sun, 2 Jan 2011 19:00:32 +0000 (19:00 +0000)]
Spelling fix: itterator->iterator

10 years agoSmall changes to new pointcache code:
Janne Karhu [Sun, 2 Jan 2011 18:10:33 +0000 (18:10 +0000)]
Small changes to new pointcache code:
* Removed the unused fuctions spotted by Campbel.
* Removed the gotos to make Ton happy.
* Added better debug prints to disk cache operations.
* Fixed a memory unmap error that seemed to happen on a test file.

10 years agoSplitting quad into triangles and merging triangles into quad should
Sergey Sharybin [Sun, 2 Jan 2011 17:38:22 +0000 (17:38 +0000)]
Splitting quad into triangles and merging triangles into quad should
work correct with sculpting data now.

Joining two triangles could give incorrect sculpting result for
special topologies, but it's that case that can't be nicely handled
with our layers architecture.

10 years agoNew customdata layer callback: validate
Sergey Sharybin [Sun, 2 Jan 2011 17:08:25 +0000 (17:08 +0000)]
New customdata layer callback: validate
Used to validate displacement allocation size after face copying
to match face vertex and displacement corners count.

10 years agoMultires math function used for layer interpolation moved from customdata.c to multires.c
Sergey Sharybin [Sun, 2 Jan 2011 16:43:28 +0000 (16:43 +0000)]
Multires math function used for layer interpolation moved from customdata.c to multires.c

No functional changes

10 years agoCrash fix for pointcache... bad goto's here.
Ton Roosendaal [Sun, 2 Jan 2011 13:57:06 +0000 (13:57 +0000)]
Crash fix for pointcache... bad goto's here.

10 years agoSmall feature for debugging pleasure:
Ton Roosendaal [Sun, 2 Jan 2011 13:33:32 +0000 (13:33 +0000)]
Small feature for debugging pleasure:

The svn revision nr is saved in Blender file header now.
Can only be retrieved with running blender -d now.

10 years agoBugfix 25451
Ton Roosendaal [Sun, 2 Jan 2011 11:14:47 +0000 (11:14 +0000)]
Bugfix 25451

Tooltip for "default render output" was wrong.

10 years ago- correct typos in comments.
Campbell Barton [Sun, 2 Jan 2011 11:06:50 +0000 (11:06 +0000)]
- correct typos in comments.
- move boxpack struct out of the public header.

10 years agoFix #25435: remove code that enabled EWA filter on mipmap toggle, should not
Brecht Van Lommel [Sun, 2 Jan 2011 10:52:21 +0000 (10:52 +0000)]
Fix #25435: remove code that enabled EWA filter on mipmap toggle, should not
have been there, mistake in removing SAT filter.