Sergej Reich [Thu, 7 Mar 2013 17:52:51 +0000 (17:52 +0000)]
Fix warnings in stubs.c
Sergej Reich [Thu, 7 Mar 2013 17:52:48 +0000 (17:52 +0000)]
Fix building with blenderplayer
Sergey Sharybin [Thu, 7 Mar 2013 17:47:30 +0000 (17:47 +0000)]
Border for compositor viewer node feature
This adds border option to compositor, which affects on
a backdrop and viewer nodes, which is useful for faster
previews and tweaks.
Final compositing still happens for the whole frame, but
if it'll be needed it's not so difficult to support it
as well.
To use border there's Ctrl-B shortcut in the compositor
editor, which i used to define region you want to restrict
compositing to. There's also "Viewer Border" option in
the N-panel in case you'll want to disable border
compositing.
Some areas could be cleaned a bit, like ideally it shall
not be viewer image clearing in viewer_border_update RNA
callback, but currently it's not so much clear how to
make it the same fast as simple memset and glue it
somehow to compositor. Will think of nicer solution a
bit later.
Ton Roosendaal [Thu, 7 Mar 2013 16:57:53 +0000 (16:57 +0000)]
Speedup for Grease Pencil animators.
Saving and loading gpencil was using different order for the individual list items.
On a 120 Mb gpencil project (yes, animators!) loading time went down from 1 minute
to a second or two.
Note that this to have effect, you need to save once.
Developer note: check this commit, it uses a new writelist function. You can
speedup stuff tremendously with keeping saved and read data in sync.
Campbell Barton [Thu, 7 Mar 2013 16:12:36 +0000 (16:12 +0000)]
ruler arc draw clamps to line length and simplify projection.
Antony Riakiotakis [Thu, 7 Mar 2013 12:11:38 +0000 (12:11 +0000)]
Texture paint refactoring commit
This is as close as I can get to keeping the old code intact. After this
commit, I will have to change existing code paths, making testing of
functionality harder.
Changes:
* Keep only projective texturing code in paint_image_proj.c
* Move 2D code to paint_image_2d.c. This needed the introduction of
allocation/cleanup functions for the relevant structures.
* Common code interface for both modes stays in paint_image.c (which
still includes all old code, system should work as it did with the
exception of non-projective 3D paint mode) and is made public. This is
not a lot of code, only rectangle invalidation and undo system.
* Changed the naming in the new code slightly: imapaint_ prefixed functions refer to
common functions used by both systems, paint_2d_ prefixed to 2d
painting. There will be an interface for the projection painting as
well. Probably there is some leftover naming conversions to do.
TODO:
* Move operator init/exec/modal to common interface file
* Get rid of old BKE_brush_painter_paint, now brush_painter_2d_paint.
All code uses stroke system for the stroke management
* Write space pressure management for the paint stroke system (for other
systems to access as well :) )
* Move texture paint tablet presssure exception code for old bugs to
stroke system (makes me wonder...aren't other systems also influenced by
these pressure issues?) or up in the function hierarchy inside texture
paint. This code is still not there so users with tablets may notice
some issues.
* possibly change other systems to pre-multiply pressure with the
relevant influenced attributes in the stroke function. This could get
tricky though and it's possible that it could backfire.
Campbell Barton [Thu, 7 Mar 2013 11:53:11 +0000 (11:53 +0000)]
ruler/protractor for 3d viewport (apart of 3d printing features). work-in-progress.
- activate from spacebar search (3D Ruler)
- ctrl-click adds new rulers
- clicking in the middle of a ruler, turns into protractor, dragging out of view snaps back to ruler.
Gaia Clary [Thu, 7 Mar 2013 10:26:04 +0000 (10:26 +0000)]
Collada fixed Collada ID name for exported animation curves
Campbell Barton [Thu, 7 Mar 2013 06:46:50 +0000 (06:46 +0000)]
avoid calling glGetFloatv() twice when UI_RB_ALPHA is enabled with uiRoundBox()
Campbell Barton [Thu, 7 Mar 2013 02:44:55 +0000 (02:44 +0000)]
use bool for rna funcs.
Gaia Clary [Wed, 6 Mar 2013 23:21:52 +0000 (23:21 +0000)]
Collada: Added option for how rot,loc,trans data is exported (improves flexibility for support of other 3D tools)
Antony Riakiotakis [Wed, 6 Mar 2013 22:54:44 +0000 (22:54 +0000)]
Support position jittering on new texpaint code using the stroke system.
Antony Riakiotakis [Wed, 6 Mar 2013 20:55:04 +0000 (20:55 +0000)]
Change !BLI_ghashIterator_isDone to BLI_ghashIterator_notDone. It is
always used in that context so we can at least avoid reverting it twice
:p.
Sv. Lockal [Wed, 6 Mar 2013 20:26:28 +0000 (20:26 +0000)]
Typo fix to fix global delete with Shift-X as it was before r43416
Antony Riakiotakis [Wed, 6 Mar 2013 19:54:43 +0000 (19:54 +0000)]
Texture paint refactoring commit
Adding new file paint_image_proj.c which includes the projective texture painting part of texture
painting, using the stroke system. To access the new code path use Shift-LClick.
The new code path still is problematic with tablet pressure and I will be looking
into ways to unify this across paint systems next.
The old code is still present and can be accessed by regular Lclick as usual.
Also removed 3D (non-projective) painting from 3D viewport.
TODO:
* Add pressure influence code to stroke, remove from every other paint
system code, including texpaint.
* Put UnifiedPaintSettings update in PaintStroke code.
Sergey Sharybin [Wed, 6 Mar 2013 18:01:24 +0000 (18:01 +0000)]
Tracking dopesheet fixes:
- Dopesheet need to be updated when adding or switching
between objects.
- After removing object it shall also be tagged for update,
otherwise crash will likely happen.
Campbell Barton [Wed, 6 Mar 2013 16:56:28 +0000 (16:56 +0000)]
fix for error building on big-endian.
Campbell Barton [Wed, 6 Mar 2013 16:32:05 +0000 (16:32 +0000)]
fix for bug where array buttons would use -1 index, causing an out-of-bounds check on an array.
added assert so this wont happen again.
Campbell Barton [Wed, 6 Mar 2013 15:38:11 +0000 (15:38 +0000)]
add asserts for passing negative index values to RNA functions which don't support them.
Campbell Barton [Wed, 6 Mar 2013 03:58:38 +0000 (03:58 +0000)]
Alternate fix for bug [#34369], where invalid polygon normals could be saved in the mesh data and in the file.
This was from initial BMesh merge, but should not have been added in since face normals are calculated and stored in the DerivedMesh.
Toggling editmode would remove poly-normals so its unlikely anything relies on this custom-data.
Joshua Leung [Wed, 6 Mar 2013 03:53:56 +0000 (03:53 +0000)]
Woops! Fix for previous F-Curve path fix commit
Trying to rename a valid F-Curve would crash as no RNA property was set, but
*prop still had an uninitialised value.
Campbell Barton [Wed, 6 Mar 2013 02:57:31 +0000 (02:57 +0000)]
code cleanup: quiet warnings for recent weight paint theme addition.
Campbell Barton [Wed, 6 Mar 2013 02:52:34 +0000 (02:52 +0000)]
code cleanup: quiet float/double conversion warnings.
Joshua Leung [Wed, 6 Mar 2013 01:59:09 +0000 (01:59 +0000)]
Bugfix [#32492] - Part 3: Error filter now includes drivers where there are
errors with the variables/targets, even if those errors are for variables which
aren't used (and are hence "harmless" errors)
This means that the filter can be truly useful for helping locate things that
need "cleaning up". For example, previously, there could still have been drivers
where there were some of these "harmless" errors would emit warnings, but would
otherwise appear perfectly functional.
The implementation here uses a slightly slower method of checking any errors in
these driver vars. However, it's no slower than what's done when these are
evaluated, and should be less error prone than introducing yet another type of
error tagging for this one case. The problem here is that the "driver invalid"
flag, which is usually set when a target has errors, gets cleared by the
pydrivers code if nothing went wrong when evaluating the expression. Removing
this clearing step will probably open a can of worms, so unless this method
proves to be far too slow, this simpler fix will do.
Joshua Leung [Wed, 6 Mar 2013 01:44:12 +0000 (01:44 +0000)]
Experimental Feature: Ctrl-Click on the "name" of a broken F-Curve now allows
you to fix the RNA Path in-place
For F-Curves that are disabled or marked as having errors because their paths
are invalid (indicated with a red line underneath their names), it is now
possible to use the Ctrl-Click renaming functionality to bring up a textbox for
fixing the offending RNA Path "in place" (i.e. in the channels list) without
having to bring up the properties region first.
This makes it easier to fix the paths if you know what you're doing. However,
caution is still advised for most people. In particular, be aware that this uses
a separate "RNA Array Index" for indexing into array properties (i.e. location,
rotation, color) which will not be shown here, and can only be edited from the
panel (or datablocks editor/scripts).
Joshua Leung [Wed, 6 Mar 2013 00:56:58 +0000 (00:56 +0000)]
Feature Request: "Show Errors" Filter for Anim Editors now works for
F-Curves/Animation as well as Drivers
This is useful for tracking down invalid F-Curves which might need to have their
paths fixed, or perhaps to remove F-Curves for controls which no longer exist in
a new rig.
Antony Riakiotakis [Tue, 5 Mar 2013 23:21:10 +0000 (23:21 +0000)]
The imperative per-few-days blenderplayer fix.
Daniel Genrich [Tue, 5 Mar 2013 22:58:13 +0000 (22:58 +0000)]
Bugfix [#34519] deleted cache after duplicating an object with baked simulation
Gaia Clary [Tue, 5 Mar 2013 20:30:38 +0000 (20:30 +0000)]
Weight Painting: Added userpref for zero_weight color.
Antony Riakiotakis [Tue, 5 Mar 2013 20:25:08 +0000 (20:25 +0000)]
Fix cursor display for anchored brushes due to own recent change of
paint coordinate system.
Bastien Montagne [Tue, 5 Mar 2013 15:15:53 +0000 (15:15 +0000)]
UI messages fix: no end point in tips! (from r55055).
Campbell Barton [Tue, 5 Mar 2013 14:47:49 +0000 (14:47 +0000)]
code cleanup: also change BKE_blender.h BLENDER_VERSION_CHAR to 'a' so as not to confuse things.
Brecht Van Lommel [Tue, 5 Mar 2013 14:42:06 +0000 (14:42 +0000)]
Simple deform modifier: replace factor property by angle for twist and bend
modes, so we can show degrees rather than radians. Still refers to the same
DNA variable to keep backwards compatibility.
Patch #33807 by Gottfried Hofmann.
Sergey Sharybin [Tue, 5 Mar 2013 12:41:17 +0000 (12:41 +0000)]
View All operator for motion tracking dopesheet.
Ton Roosendaal [Tue, 5 Mar 2013 11:19:21 +0000 (11:19 +0000)]
Bug fix #34534
Fix for 2.66a
The new Copy/Paste objects feature could hang in eternal loop.
Only happens for objects that refer to another scene via linkage.
This fix then crashed Blender, needed to add a NULL check for screens.
Sergey Sharybin [Tue, 5 Mar 2013 09:38:50 +0000 (09:38 +0000)]
Switch from DENSE_NORMAL_CHOLESKY to DENSE_QR
DENSE_QR is better behaved numerically and after recent
changes from Sameer there's no big difference in speed.
Sergey Sharybin [Tue, 5 Mar 2013 09:38:43 +0000 (09:38 +0000)]
Update Ceres to 1.5RC3
It brings optimization of DENSE_QR and DENSE_SCHUR solvers.
Lukas Toenne [Tue, 5 Mar 2013 09:34:17 +0000 (09:34 +0000)]
Sanity check in the cut-links operator, make sure preview jobs are not running before modifying the node tree.
Lukas Toenne [Tue, 5 Mar 2013 09:34:14 +0000 (09:34 +0000)]
Fix #34507, adding reroute node into invalid links would crash the compositor.
Compositor relies on correctly tagged invalid links, but the nodeInternalRelink function used to replace reroute nodes in localization did not correctly take this flag into account. If a node replaces a link with an invalid upstream link the resulting link must also be flagged invalid.
Campbell Barton [Tue, 5 Mar 2013 07:39:52 +0000 (07:39 +0000)]
fix for building with msvc
Campbell Barton [Tue, 5 Mar 2013 07:36:30 +0000 (07:36 +0000)]
code cleanup: remove unused argument from bli_builddir
Campbell Barton [Tue, 5 Mar 2013 07:02:59 +0000 (07:02 +0000)]
fix for building with mingw in since recent changes.
Campbell Barton [Tue, 5 Mar 2013 06:38:43 +0000 (06:38 +0000)]
code cleanup: remove unused member of direntry struct, also add include for building on osx.
Campbell Barton [Tue, 5 Mar 2013 06:26:10 +0000 (06:26 +0000)]
patch [#34103] path_util_split_dirstring.patch, path_util_split_dirstring_2.patch, path_util_split_dirstring_3.patch
from Lawrence D'Oliveiro (ldo)
Get rid of BLI_splitdirstring, replace with calls to BLI_split_dirfile, BLI_split_dir_part and BLI_split_file_part as appropriate.
Campbell Barton [Tue, 5 Mar 2013 04:35:14 +0000 (04:35 +0000)]
patch [#34103] path_util_cleanups.patch
from Lawrence D'Oliveiro (ldo)
- Better argument name for BLI_cleanup_path and BLI_cleanup_file
- remove redundant BLI_add_slash already done by BLI_cleanup_dir
Campbell Barton [Tue, 5 Mar 2013 04:24:53 +0000 (04:24 +0000)]
patch [#34103] storage_bli_dir_contents.patch
from Lawrence D'Oliveiro (ldo)
BLI_dir_contents no longer changes current working directory.
Campbell Barton [Tue, 5 Mar 2013 04:11:55 +0000 (04:11 +0000)]
patch [#34103] storage_bli_file_size.patch
from Lawrence D'Oliveiro (ldo)
more efficient implementation of BLI_file_size that doesn't open the file.
Campbell Barton [Tue, 5 Mar 2013 03:59:38 +0000 (03:59 +0000)]
patch [#34103] fileops_file_is_writable.patch, fileops_file_is_writable_2.patch
from Lawrence D'Oliveiro (ldo)
More efficient implementation of BLI_file_is_writable using access(2) instead of actually opening file.
Campbell Barton [Tue, 5 Mar 2013 03:53:22 +0000 (03:53 +0000)]
patch [#34103] fileops_1.patch
from Lawrence D'Oliveiro (ldo)
Add comments and use of bool type in fileops.c
Campbell Barton [Tue, 5 Mar 2013 03:44:47 +0000 (03:44 +0000)]
patch [#34103] dir_contents.patch
from Lawrence D'Oliveiro (ldo)
- storage.c: Simplify BLI_dir_contents and make it and its internal subsidiary routines reentrant
- Moved common code for disposal of a struct direntry to new routine BLI_free_filelist in storage.c, and put calls to it in interface_icons.c and filelist.c
- Took out inclusion of BLI_fileops_types.h from BLI_fileops.h and put it explicitly into .c files that need it (which turned out to be only 7 of the 35 files that were including the former)
Campbell Barton [Tue, 5 Mar 2013 03:17:46 +0000 (03:17 +0000)]
patch [#34103]
from Lawrence D'Oliveiro (ldo)
More use of bool type, necessitating adding inclusion of BLI_utildefines.h, or moving it up in the inclusion order if it was already included, in various places
- storage.c: make some variables only used in bli_builddir local to that
- storage.c: BLI_file_descriptor_size should allow 0 as a valid file descriptor
- path_util.c: make pointers to non-reentrant storage returned from folder routines const, necessitating making variables holding these returned pointers const elsewhere as well
- path_util.c: BLI_string_to_utf8 closes iconv context in case of conversion error
- blf_lang.c: fill_locales routine now has its own "languages" local variable to construct paths (was stealing internal storage belonging to BLI_get_folder before)
Antony Riakiotakis [Tue, 5 Mar 2013 02:47:00 +0000 (02:47 +0000)]
Image buffer rectangle operation optimization: Remove a switch statement
outside of loop and remove a function call. Should give a little speedup when
painting inside the image editor.
Antony Riakiotakis [Mon, 4 Mar 2013 22:55:53 +0000 (22:55 +0000)]
Convert paint stroke code to write region instead of screen coordinates
on mouse event coordinates. Every paint mode operated on and converted
back to region coordinates, texture paint does so too so this will help
in unifying the systems.
ALERT! POSSIBLE BREAKING COMMIT:
I have tested all paint systems that use the stroke code and they look
like they work well but I would appreciate it if more eyes could test
this.
Campbell Barton [Mon, 4 Mar 2013 19:27:51 +0000 (19:27 +0000)]
patch [#34103] use boolean in path functions and add comments.
path_util_1.patch from Lawrence D'Oliveiro (ldo)
Campbell Barton [Mon, 4 Mar 2013 18:36:37 +0000 (18:36 +0000)]
patch [#34103] use booleans for extensions testing.
bli_testextensie.patch - from Lawrence D'Oliveiro (ldo)
Sergey Sharybin [Mon, 4 Mar 2013 18:30:48 +0000 (18:30 +0000)]
Fix for incorrect subpixel precision of marker when using track offset
Issue was caused by the way how pattern sampling happens in case of
anchored display: track offset is applying on search buffer which
means offset is rounding to an integer. Fractional pat of offset was
completely ignoring which lead to jumps in pattern buffer.
This was only a visualization issue in track preview widget.
Ton Roosendaal [Mon, 4 Mar 2013 17:06:16 +0000 (17:06 +0000)]
Bugfix
For 2.66a
Allow trackpad and magic mouse swipes to control brush size for circle select.
(Similar to mousewheel).
Brecht Van Lommel [Mon, 4 Mar 2013 16:37:05 +0000 (16:37 +0000)]
Fix for texture preview render with show alpha enabled, now it shows no
transparency when use alpha and calculate alpha are disabled.
It's a bit arbitrary as it's not possible to fully visualize the output
of a texture, that depends on how it's used in the texture stack, but this
is a bit more in line with what you might expect.
Antony Riakiotakis [Mon, 4 Mar 2013 16:34:37 +0000 (16:34 +0000)]
Avoid clearing the depth buffer when using full screen quads for
gradients
Antony Riakiotakis [Mon, 4 Mar 2013 15:58:40 +0000 (15:58 +0000)]
Change default margin for bake to 16 pixels
Campbell Barton [Mon, 4 Mar 2013 13:59:54 +0000 (13:59 +0000)]
patch [#34525] Scons ' color
by Andrey Izrantsev (bdancer)
Brecht Van Lommel [Mon, 4 Mar 2013 13:18:14 +0000 (13:18 +0000)]
Fix for image transparency backwards compatibility. Now the texture datablock has
a Use Alpha option again. This makes the case where you enabled Premultiply on the
image and disabled Use Alpha on the texture work again.
That's mostly useful when you have a straight alpha image file which has no useful
RGB colors in zero alpha regions (e.g. renders). Then sometimes you don't want to
use the alpha for the texture stack mixing, but you still want to multiply it into
the RGB channels to avoid a blocky transition into zero alpha regions.
This also removes the version patch that copied image datablocks because it's not
reliable and might be causing bug #34434. This does mean we are no longer backwards
compatible for cases where two different texture datablocks with Use Alpha enabled
and disabled where using the same image.
Sergey Sharybin [Mon, 4 Mar 2013 13:14:21 +0000 (13:14 +0000)]
Fix #34475: Weird noise bug with Texture nodes
Made Texture compositor input node single-threaded since
texture trees are not thread-safe.
Also fixed texture being flipped horizontally and vertically.
Why nobody noticed this for 3 releases already??
Gaia Clary [Mon, 4 Mar 2013 13:12:56 +0000 (13:12 +0000)]
Collada: Added ngon support to Vertex Color exporter
Sergey Sharybin [Mon, 4 Mar 2013 12:40:24 +0000 (12:40 +0000)]
Fix #34501: Painting on image editor with texture brush causes memory leaks in render module
Issue was caused by svn rev54721 where donequeue wasn't fully handled
in cases rendering was canceled, which lead to some render results
unfreed.
Jens Verwiebe [Mon, 4 Mar 2013 10:31:01 +0000 (10:31 +0000)]
OSX/locale: a further cleanup
Ton Roosendaal [Mon, 4 Mar 2013 09:55:43 +0000 (09:55 +0000)]
Bugfix #34493
Should go to 2.66a
Image Sequence texture now allows to animate "Offset" again with fcurves.
This was disabled for 2.65, it only works for fcurve key inserting (not
for drivers), but too many people have been using to animate character
textures already...
Dalai Felinto [Mon, 4 Mar 2013 08:45:42 +0000 (08:45 +0000)]
bge bugfix: [#34517] 2D Filter causes mouselook script drifting effect (patch by Daniel Stokes - Kupoman)
Fix for 2.66a
""We can't pass the results of canvas->GetViewPort() directly because canvas->SetViewPort() does some extra math""
Bug introduced during 2.65 series in the refactor to use canvas->SetViewPort instead of direct opengl calls for viewport
(53305, 53392, 53393)
Dalai Felinto [Mon, 4 Mar 2013 08:22:20 +0000 (08:22 +0000)]
BGE bug-fix[#34523] 2dfilter produces render error (objects disappear) - likely an alpha problem
Fix for 2.66a
With help from Daniel Stokes and Mitchell Stokes.
This bug always existed in OSX, but started showing up in Windows and Linux on review (54745 + 54747)
[the patch to enable alpha buffer for all OSs]
A better fix would be to use RAS_IRasterizer::SetAlphaBlend(GPU_BLEND_SOLID);
but I think gpu_verify_alpha_blend() is not switching to SOLID because
GTS.alphablend is GPU_BLEND_SOLID (even though GL_ALPHA_TEST is enabled).
Anyways, this is not something worth tackling now, since in terms of functionality it shouldn't matter.
Campbell Barton [Mon, 4 Mar 2013 07:15:09 +0000 (07:15 +0000)]
code cleanup: view3d_clipping_test was making a vector copy for no reason.
Campbell Barton [Mon, 4 Mar 2013 07:11:42 +0000 (07:11 +0000)]
fix [#34416] Sculpt with ALT-B affects unseen mesh parts
Campbell Barton [Mon, 4 Mar 2013 05:25:16 +0000 (05:25 +0000)]
fix [#34473] Blender Crashes on toggling modes, dynatopo sculpt/object mode.
Campbell Barton [Mon, 4 Mar 2013 04:21:51 +0000 (04:21 +0000)]
fix [#34490] Copy and paste floating point number fields losses precision
- copy now gets up to 6 decimal places
- copy and UI float button editing now strip zeros: 1.000 -> 1.0
Campbell Barton [Mon, 4 Mar 2013 01:57:29 +0000 (01:57 +0000)]
fix [#34369] applying screw modifier turns object to black
Campbell Barton [Mon, 4 Mar 2013 00:53:57 +0000 (00:53 +0000)]
code cleanup: unused vars in collada, preprocessor formatting & warning in mingw.
also compiling without bullet needed a stub added.
Gaia Clary [Mon, 4 Mar 2013 00:28:25 +0000 (00:28 +0000)]
Collada: Fix: do not export controllers when shape_key exporting is disabled
Gaia Clary [Mon, 4 Mar 2013 00:17:20 +0000 (00:17 +0000)]
Collada: Fix export of Normals where shading is set to smooth
Jens Verwiebe [Sun, 3 Mar 2013 20:32:27 +0000 (20:32 +0000)]
OSX/locale: fix compile on older xcode by not using toll-free-bridging, which needs ARC
Thomas Dinges [Sun, 3 Mar 2013 17:30:23 +0000 (17:30 +0000)]
Fix for [#34509] minor theme panel color issue
* panelcolors.back and panelcolors.header were missing in resources.c for the 3D View.
Antony Riakiotakis [Sun, 3 Mar 2013 16:33:39 +0000 (16:33 +0000)]
Cleanup, move uv sculpt specific code to sculpt_uv.c. Also rename
brush_drawcursor to a more indicative of its users name until paint
cursor unification is done.
Brecht Van Lommel [Sun, 3 Mar 2013 15:07:18 +0000 (15:07 +0000)]
Fix #34508: particle emitter show/hide option did not work correct after
recent bugfix.
Gaia Clary [Sun, 3 Mar 2013 13:53:32 +0000 (13:53 +0000)]
Collada: exported normals now based on MPoly instead of MFace
Sergej Reich [Sun, 3 Mar 2013 06:09:48 +0000 (06:09 +0000)]
rigidbody: Revert to running simulation on frame update
Instead of flagging the rigid body world for frame update just call
BKE_rigidbody_do_simulation() recursively for all scenes.
This avoids having to constantly check if the simulation needs to be
updated.
Sergej Reich [Sun, 3 Mar 2013 06:09:45 +0000 (06:09 +0000)]
rigidbody: Fix inconsistency with world rebuilding
The rigid body world could be rebuilt on start frame and one frame after
start frame. The latter was necessary sice animation playback usually
doesn't start at start frame.
This lead to different simulations depending on which frame the
simulaton was rebuilt when animation was involved.
Now we only rebuild the world on start frame.
This is actually tricky to do since, as mentioned above, animation
playback starts on second frame. To work around this we rebuild the
world before the actual update.
The alternative would be to rebuld the world on every simulation change
(like the other simulations do it) but this is an expensive operation
and would be too slow.
Campbell Barton [Sun, 3 Mar 2013 05:43:47 +0000 (05:43 +0000)]
code cleanup: de-duplicate cast modifier logic, had 'optimization' which was only saving a NULL check per loop, causing most of the logic to be copied, ~130 lines.
Campbell Barton [Sun, 3 Mar 2013 05:07:58 +0000 (05:07 +0000)]
code cleanup: ~400 duplicate lines for AO form factor math.
Campbell Barton [Sun, 3 Mar 2013 04:54:33 +0000 (04:54 +0000)]
code cleanup: de-duplicate ~75 lines copied twice - tsk tsk.
Campbell Barton [Sun, 3 Mar 2013 03:29:57 +0000 (03:29 +0000)]
move toggle drag into a UI handler (was modal operator)
Campbell Barton [Sun, 3 Mar 2013 01:24:09 +0000 (01:24 +0000)]
enable triangulation with collada, disable BLI_STATIC_ASSERT for C++.
Gaia Clary [Sat, 2 Mar 2013 23:42:03 +0000 (23:42 +0000)]
partial revert of collada triangulation code due to problems on linux
Jens Verwiebe [Sat, 2 Mar 2013 22:50:46 +0000 (22:50 +0000)]
OSX: Get the current locale in objC-style
Gaia Clary [Sat, 2 Mar 2013 20:46:37 +0000 (20:46 +0000)]
Fix Collada build error in scons
Mitchell Stokes [Sat, 2 Mar 2013 18:05:52 +0000 (18:05 +0000)]
BGE: Fix for bugs #34428, #20856, #20281. These were all multi-uv bugs caused by the BGE keeping too much uv information. When setting up shaders the BGE assumes each UV layer is unique, but the converter would store duplicates.
Campbell Barton [Sat, 2 Mar 2013 16:13:01 +0000 (16:13 +0000)]
fix [#34431] Crash with 2.66 when dyntopo enabled and using view plane mode
Gaia Clary [Sat, 2 Mar 2013 15:58:13 +0000 (15:58 +0000)]
Collada: Added support for ngon export/import and added triangulate option to export
Campbell Barton [Sat, 2 Mar 2013 15:34:47 +0000 (15:34 +0000)]
fix [#34486] Selection of bones in armature edit mode only toggles between two bones
Gaia Clary [Sat, 2 Mar 2013 12:16:23 +0000 (12:16 +0000)]
Added typecasts to keep c++ from reporting errors
Campbell Barton [Sat, 2 Mar 2013 12:05:25 +0000 (12:05 +0000)]
now dragging an image onto an empty can be done without holding Ctrl.
Make it set the empty draw type for existing empty object.
change from yakca on IRC
also some whitespace cleanup.
Campbell Barton [Sat, 2 Mar 2013 07:27:19 +0000 (07:27 +0000)]
code cleanup: clarify comment about virtial-modifiers, also add comments to DNA headers when its not so obvious what their purpose is.
Brecht Van Lommel [Fri, 1 Mar 2013 20:45:42 +0000 (20:45 +0000)]
Fix #34483: game engine multi UV glsl materials not working correct after changes
to support more than 2 UV maps. This code indirectly depended on the order of
OpenGL attribute ID's assigned by the OpenGL driver being the same as the
attributes being declared in the GLSL shader code, which is not always the case.