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.

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

10 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?

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

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

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

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

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

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

10 years agogeometry module
Campbell Barton [Sun, 2 Jan 2011 02:11:38 +0000 (02:11 +0000)]
geometry module
- rename functions from camel case.
- added docs for undocumented methods.
- minor functional changes with exceptions and accepting 3d/4d vectors where it makes no difference.

 - geometry.Intersect -> intersect_ray_tri
 - geometry.ClosestPointOnLine -> intersect_point_line
 - geometry.PointInTriangle2D -> intersect_point_tri_2d
 - geometry.PointInQuad2D -> intersect_point_quad_2d
 - geometry.LineIntersect -> intersect_line_line
 - geometry.LineIntersect2D -> intersect_line_line_2d
 - geometry.BezierInterp -> interpolate_bezier
 - geometry.TriangleArea -> area_tri
 - geometry.QuadNormal, TriangleNormal -> normal
 - geometry.PolyFill -> tesselate_polygon
 - geometry.BoxPack2D -> box_pack_2d
 - geometry.BarycentricTransform -> barycentric_transform

10 years agoremoving epydocs for mathutils and geometry mododules (now they are in sphinx)
Campbell Barton [Sat, 1 Jan 2011 23:53:48 +0000 (23:53 +0000)]
removing epydocs for mathutils and geometry mododules (now they are in sphinx)

10 years agoFix [#25442]: (Ghost Cocoa) Add missing initialization of associated object pointer...
Damien Plisson [Sat, 1 Jan 2011 19:48:14 +0000 (19:48 +0000)]
Fix [#25442]: (Ghost Cocoa) Add missing initialization of associated object pointer when switching to/from fullscreen.

10 years agoBugfix #25445
Ton Roosendaal [Sat, 1 Jan 2011 17:52:06 +0000 (17:52 +0000)]
Bugfix #25445

CTRL+R loopcut now shows header print with instructions.
User report was that Blender was freezing :)

10 years agoFor non-gnu compilers, the __func__ doesn't exist.
Ton Roosendaal [Sat, 1 Jan 2011 15:49:25 +0000 (15:49 +0000)]
For non-gnu compilers, the __func__ doesn't exist.
Fix for commit of 2 hours ago.

10 years agoBugfix, IRC report
Ton Roosendaal [Sat, 1 Jan 2011 15:28:21 +0000 (15:28 +0000)]
Bugfix, IRC report

Floor constraint didn't work: the defines for the enums were using
the wrong ones, the right ones are not logical... but code and dna
and old files assume these. Now it works :)

10 years agoBugfix #25437
Ton Roosendaal [Sat, 1 Jan 2011 13:49:22 +0000 (13:49 +0000)]
Bugfix #25437

Crash in Bezier animation (inserting keys on control points in
curve object). The animation rna paths were not fixed after an
editmode session, which got fixed 2 weeks ago, but for all older
binaries the issue can still pop up.

The crash happened because the RNA array-itterator was not doing
a boundary check, even whilst the array size was passed on to the
itterator callbacks. With rna then writing far outside of valid
memory, very bad and unpredictable corruptions happen.

I've added a range check now, and a decent print to denote the
issue. An assert quit is useless, since a tab-tab on curve objects
will fix the channels nicely.

Example of warning print:
Array itterator out of range: Spline_bezier_points_lookup_int (index 30 range 2)

10 years agoBVH Importing native order eulers was broken, simplify conversion between rotation...
Campbell Barton [Sat, 1 Jan 2011 13:20:35 +0000 (13:20 +0000)]
BVH Importing native order eulers was broken, simplify conversion between rotation orders.

10 years agobvh export
Campbell Barton [Sat, 1 Jan 2011 10:38:28 +0000 (10:38 +0000)]
bvh export
- write compatible eulers (no jumping as eulers change).
- write FPS.
- correct poll function incase bvh export is called without an armature.

10 years agoadded bvh export operator & menu item, now user accessible.
Campbell Barton [Sat, 1 Jan 2011 09:44:13 +0000 (09:44 +0000)]
added bvh export operator & menu item, now user accessible.