blender.git
9 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.

9 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.

9 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

9 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

9 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.

9 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.

9 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
improperly.
- Clarified description/error messages...

9 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.

9 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.

9 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

9 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.

9 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
(summary)

Oops.. missed one place

9 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.

9 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.

9 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]

9 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.

9 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.
 bpy.data.meshes.tag = True

But this was only useful for setting so make it a function for 2.5x.
 bpy.data.objects.tag(False)

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

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

9 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.

9 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.

9 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.

9 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

9 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.

9 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

9 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.

9 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 ;)

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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: https://projects.blender.org/tracker/index.php?func=detail&aid=24948&group_id=9&atid=306

9 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 :)

9 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...

9 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...

9 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

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

9 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
Pencil.

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).

Notes:
- 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)

9 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.

9 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.

9 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).

9 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.

9 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.

9 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'

9 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 :)

9 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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)

9 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.

9 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!

9 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.

9 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.

TODO:
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

9 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

9 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.

9 years agorna/api
Campbell Barton [Mon, 3 Jan 2011 09:09:30 +0000 (09:09 +0000)]
rna/api
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.

9 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")

9 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.

9 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.

9 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.

9 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.

9 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

9 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
:)

Notes:
- 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
now.

9 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.

9 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.

9 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

9 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.

Todo:
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...

9 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

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

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-
fcurves)...

9 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.

9 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.

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

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 years agoCMake fix so MSVC works again. Fix suggested by Tamito Kajiyama.
Mitchell Stokes [Sun, 2 Jan 2011 10:21:03 +0000 (10:21 +0000)]
CMake fix so MSVC works again. Fix suggested by Tamito Kajiyama.

9 years agoQuiet warnings from last commit.
Campbell Barton [Sun, 2 Jan 2011 10:13:17 +0000 (10:13 +0000)]
Quiet warnings from last commit.

Janne: could you check if ptcache_file_pointers_seek() & ptcache_read_init() can be removed?

9 years agoCXX_Guardedalloc was complaining about freeing NULL pointers in VideoTexture. I've...
Mitchell Stokes [Sun, 2 Jan 2011 10:05:22 +0000 (10:05 +0000)]
CXX_Guardedalloc was complaining about freeing NULL pointers in VideoTexture. I've added guards around the deletes to prevent this.

9 years agopython api: rna array slices now return tuples rather then lists (fits with recent...
Campbell Barton [Sun, 2 Jan 2011 09:54:44 +0000 (09:54 +0000)]
python api: rna array slices now return tuples rather then lists (fits with recent change made to mathutils).
minor improvements/cleanup to exporters.

9 years agoPointcache code cleanup and disk cache compression options:
Janne Karhu [Sun, 2 Jan 2011 06:52:47 +0000 (06:52 +0000)]
Pointcache code cleanup and disk cache compression options:
* Massive reorganization of pointcache code, things are now cleaner than ever.
* For all but smoke the cache is first written to memory when using disk cache and after that written to disk in one operation. This allows less disk operations and the possibility to compress the data before writing it to disk.
* Previously only smoke cache could be compressed, now the same options exist for other physics types too (when using disk cache). For now the default compression option is still "no compression", but if there aren't any problems this can be set to "light compression" as it's actually faster than no compression in most cases since there's less data to write to the disk. Based on quick tests heavy compression can reduce the file size down to 1/3rd of the original size, but is really slow compared to other options, so it should be used only if file size is critical!
* The pointcache code wasn't really 64bit compatible (for disk cache) until now, so this update should fix some crashes on 64bit builds too. Now all integer data that's saved to disk uses 32 bit unsigned integers, so simulations done on 64bit should load fine on 32bit machines and vice versa. (Important disk cache simulations made on 64bit builds should be converted to memory cache in a revision before this commit).
* There are also the beginnings of extradata handling code in pointcache in anticipation of adding the dynamic springs for particle fluids (the springs need to be stored as extradata into point cache).
* Particles were being read from the cache with a slightly wrong framerate. In most cases this probably wasn't noticeable, but none the less the code is now correct in every way.
* Small other fixes here and there & some cosmetic changes to cache panel, but over all there should be no functional changes other than the new disk cache compression options.
* This whole re-organization also seems to fix bug #25436 and hopefully shouldn't introduce any new ones!

9 years agobugreport & fix [#25441] Copy Transforms Constraint head/tail fixin'
Campbell Barton [Sun, 2 Jan 2011 04:16:19 +0000 (04:16 +0000)]
bugreport & fix [#25441] Copy Transforms Constraint head/tail fixin'
from Dan Eicher (dna)

9 years agoFix for [#25427] cloth or soft body crash un Undo
Janne Karhu [Sun, 2 Jan 2011 03:55:26 +0000 (03:55 +0000)]
Fix for [#25427] cloth or soft body crash un Undo
* Argh my bad, sorry about this!
* Now only the actual data array is saved to avoid constant re-allocations, but no relations to active data are kept.
* Also reverted Ton's quick fix for the crash as it's not needed anymore.

9 years agoreport & fix [#25447] SceneObjects null pointer dereference crash
Campbell Barton [Sun, 2 Jan 2011 02:48:45 +0000 (02:48 +0000)]
report & fix [#25447] SceneObjects null pointer dereference crash
from Dan Eicher (dna)

noticed sequence swap also wasn't checking for None.