Commit Graph

26759 Commits

Author SHA1 Message Date
Campbell Barton
b00f8e8de8 limit adjustment from AlexKu, subdiv smooth soft limit of 1. 2010-10-21 22:30:34 +00:00
Nathan Letwory
d272ea36c2 Wrong check for platform accidently put /WX to non-msvc toolchains too. 2010-10-21 18:13:43 +00:00
Janne Karhu
cfcf82803a Temporary fix for sequencer bugs #22925, #21429, #21783, #24165
* This fix is really only a bandage, as the underlying issue is that sequencer preview render doesn't yet use the job system.
* The sequencer preview can start a full render of the scene, and this can collide with other preview/actual renders in many cases.
* Drawing the sequencer preview is now disabled when an other render is in progress, but the sequence preview rendering could have already been started before the other render, so this doesn't really fix anything.
* For now only OpenGL rendering can be used for the sequencer preview reliably until it's reimplemented using the job system.
* Using the job system in the future can handle the clashes between different renders properly and will give users a nice progress bar to indicate something is happening while the preview is recalculated.
2010-10-21 17:00:38 +00:00
Campbell Barton
59d1740671 bugfix [#24331] EdgeSlide not as flawless as 2.49's
ensure minimum mouse distance for sliding edge verts else it becomes unusable.
2010-10-21 13:33:51 +00:00
Campbell Barton
bef30b270b bugfix [#24342] Wrong Bubble description when creation add-on without python comment on class 2010-10-21 11:20:44 +00:00
Nathan Letwory
19068ba38a Fix [#24348] Release confirm confusing
Reported by Dennis Dillert

A bit clearer wording.
2010-10-21 11:19:15 +00:00
Nathan Letwory
b9d17f97eb Don't use CS_CLASSDC after all. Makes drawing multiple windows funky. 2010-10-21 11:15:57 +00:00
Joshua Leung
76a0de3a0d Changes to "evaluation time" for Curves:
After discussions with Campbell regarding #24336 and #24309, we've decided to make this property for curves to only get set when an F-Curve explicitly animates it. 

As a consequence...
- ALL OLD FILES using follow-path constraints that depended on this changed behaviour will currently need manual patching to add an appropriate F-Curve
- Ctrl-P (Parenting to Curves -> Follow Path option) will now automatically create such F-Curves mimicking the old behaviour so that creating camera-following-path setups still works smoothly.
- Directly adding a Follow Path constraint bypasses this, so you'll need to manually add such F-Curves if you need them.

The main problem with the old approach was that there were many cases in which curve data could get added but the ctime would be incorrect until a frame change (i.e. on render) flushed this.
2010-10-21 10:28:06 +00:00
Campbell Barton
2e6fcc31cb tweaks to external libs to get rid of warnings. 2010-10-21 09:19:52 +00:00
Campbell Barton
fde19bfe7e bugfix [#24347] Fly mode: Immediately after pressing Shift+F, keys W and S work, keys A, D, R and F do not 2010-10-21 09:02:21 +00:00
Nathan Letwory
c9d16d0ddb /WX enabled for MSVC in CMake too.
Warning fixes.
2010-10-21 08:32:53 +00:00
Nathan Letwory
c4ad3cb5c4 Same warning suppression as with SCons 2010-10-21 07:48:51 +00:00
Nathan Letwory
107b274fb8 Enable /WX in blenkernel
Silence warnings
2010-10-21 07:39:18 +00:00
Campbell Barton
0ec320783e fix [#24339] Auto Depth, makes viewport lag.
The problem is the opensource nvidia nouveau drivers are slow running glReadPixels(), was hanging on memcpy().
However for autodepth its not needed to update the entire 3D view depths, so added view3d_update_depths_rect() to get the depths for a smaller area.
2010-10-21 07:38:09 +00:00
Nathan Letwory
ec6b9948ac Include BLI_math.h instead of math.h.
Silence a warning.
2010-10-21 07:29:15 +00:00
Nathan Letwory
6fc16a6e44 Silence warning about macro redefinition 2010-10-21 07:21:34 +00:00
Nathan Letwory
6e43a400e3 Use one device context for our window class. 2010-10-21 07:18:38 +00:00
Nathan Letwory
3cbb5611d5 * Use HWND_DESKTOP as parent for Blender Windows.
* Reorder freeing of OpenGL context code.
2010-10-21 07:16:02 +00:00
Nathan Letwory
9e73da71f5 Enable /WX on Windows. 2010-10-21 07:14:31 +00:00
Campbell Barton
9862157087 fix for fix [#24344] crash on adding new image when composite is open and there is no Nodetree
also use const prefix in solidify modifier where possible.
2010-10-21 04:21:09 +00:00
Campbell Barton
e2f1740761 use custom data mask defines, no functional changes. 2010-10-21 01:55:39 +00:00
Campbell Barton
fec8292df1 remove unused args for some modifiers, no functional change. 2010-10-21 01:10:22 +00:00
Campbell Barton
16b04834b3 improved fix for [#24267] Hook fails after Solidify
Rather then have the modifier calculate ORIGINDEX weather its needed or not (incorrect if it wasn't the first modifier on the stack),
create ORIGINDEX layer initially if any of the modifiers use it.
This way hook also works after Mirror and Screw modifiers which have the ORIGINDEX layer copied implicitly with DM_copy_vert_data().

This wasn't possible to check for before because this flag was always enabled so it would be passed to DM_set_only_copy().
Now just add the flag whenever calling DM_set_only_copy().
2010-10-21 01:08:12 +00:00
Nicholas Bishop
bfb8560a59 Partial fix for bug #24341, "Problems running blender headless"
* Fixed the random file popping up.
* Don't write to the history file in background mode, because ghost won't give us the right directory in that case
2010-10-20 23:13:12 +00:00
Campbell Barton
1998fa59ae fix for fix [#24336] evaluation time - curve has no effect
committed r32598 to fix [#24309] Reloading file with incorrect path location.

Setting the curves ctime when updating the object data overrode the animated value.
For now just set the ctime on newly added curves with will work as the user expects in most cases.
This is weak design IMHO because the ctime value can be set to anything but is reset on changing frames even if its not keyed.

With curves created via python or linked in this can still result in a bad ctime value.
2010-10-20 13:51:37 +00:00
Campbell Barton
a9f79ee536 Quiet compiler warnings. 2010-10-20 12:33:00 +00:00
Campbell Barton
394caf98e3 fix for -Wunused-value 2010-10-20 12:11:09 +00:00
Campbell Barton
a044486d7d [#24267] Hook fails after Solidify
Solidify modifier wasn't assigning origindex values.

- BLI_math.h array functions: range_vni(), mul_vn_fl(), mul_vn_vn_fl(), add_vn_vn(), fill_vni().
- define 'AT' as __FILE__ ":" STRINGIFY(__LINE__), useful for quick debug prints.
2010-10-20 09:18:55 +00:00
Campbell Barton
c2aa5d6dc0 bugfix [#24333] Horizon Color Picker Crashes Blender if Two 3D View Windows are Open
also added api function ED_area_tag_redraw_regiontype(), so an area can redraw all regions by type.
In this case there is a view3d area listener that needs to draw all WINDOW regions.
2010-10-20 04:12:01 +00:00
Mitchell Stokes
00b7422f9b stubs.c update for revision 32607, which introduced the BLC ED_space_image_paint_update(). 2010-10-20 02:47:53 +00:00
Nicholas Bishop
7110a4a288 == Sculpt ==
Fixed bug #22634, sculpting/multires and wireframe display mode glitches

* Changed ccgdm edge drawing to always use face griddata rather than edge data, since edge data is not updated during sculpting.
2010-10-20 01:17:18 +00:00
Nicholas Bishop
e12f950d25 == Paint ==
Fixed bug #24239, "Fkey doesn't work in image paint unless also in 3D texture paint"

* Fixed brush cursor not showing when painting in the image editor without 3d texture painting enabled
* Fixed fkey not working when not in 3d texture paint

Note:
This does not handle showing the brush cursor when reloading a file saved with image painting on but 3d texture painting off. The method used for object paint modes doesn't apply quite the same here, so I left that alone for now.
2010-10-20 00:42:19 +00:00
Nathan Letwory
b741740ffa Fix [#21294] Bad object drawing and crash when rendering
Reported and patched by Shane Ambler.

Took the opportunity to silence warnings in readfile.c. For Windows in SCons I enabled /WX
for blenloader. This means that all enabled warnings will throw errors from now on.
2010-10-19 22:17:34 +00:00
Andrea Weikert
56f89d2375 compile fixes on windows for quicktime.
* solved two "'blah' undefined, assuming extern returning int" 'warnings' that jesterKing now changed to be reported as errors (thanks! :))
2010-10-19 18:59:15 +00:00
Janne Karhu
fdfc09b49e Fix for [#24262] Segmentation attempting to render *NEED MOER INFO* 2010-10-19 17:45:19 +00:00
Janne Karhu
94aa87dd62 Fix for [#24293] Shadow pass is wrong
* The problem is that shadow pass is derived from the diffuse pass as
  shad = shad'/diff, where shad' = shad*diff. In cases where diff is
  0 and the division can't be done shad is left as shad' (=0).
* This all works just fine until the diffuse color is 0 on just one
  channel (no red in material color for example). In this case the shadow
  pass is left as 0 too regardless of the existence of an actual shadow,
  so the end result is a colored shadow!
* The only real solution is to use the original shadow intensity to
  determine if there actually is a shadow or not. This is now stored in
  shr->shad[3] from the lamp shadow calculation.

Note: The best solution would probably be to calculate the shadow pass on
it's own and not to derive it from the diffuse pass, but I didn't dare to
start messing up the shading code totally.
2010-10-19 16:10:30 +00:00
Campbell Barton
0a12a9bc7d [#24325] Texture painting using selected faces mask
draw a subtle grey over unselected faces rather then coloring selected faces which got in the way of seeing the colors while painting.
2010-10-19 15:35:46 +00:00
Campbell Barton
26249043e6 bugfix [#24324] Wrong center for scaling Bezier Curve's handles
slight change to how transform calculates the center of each bezier handle selection.
- selecting both handles but not the knot now uses the mid point between the 2, before it used the handle.
- selecting 1 handle of a curve was still setting td->center to be the knot, now use the handles location only if its selected.
2010-10-19 14:11:46 +00:00
Campbell Barton
dc7e1037d4 [#24307] 3d Viewport Mini 3D Axis changes color when alter 3d grid theme color
Drawing the view axis went to a lot of trouble to create a color which didnt look very good if the grid had a color other then grey set.
Simplify the function and just use the same colors as the manipulator, also use 2px fixed line width.
2010-10-19 13:04:40 +00:00
Campbell Barton
d1fe2dd967 bugfix [#24309] Reloading file with incorrect path location.
the cu->ctime was never set if the frame wasnt changed, so adding a curve and parenting could be done without a frame change leaving the cu->ctime value at zero.
changing the frame or rendering after this would make the parent relationship jump.

Set the curve->ctime in object_handle_update(), this way its set on file load and when linking in new curves.
Another option is to do this when parenting but probably this would miss other cases where its needed.
2010-10-19 12:21:57 +00:00
Janne Karhu
5f2764d849 Fix for [#24299] Changing Curves on rendered Pass scewes pass up seriously ;-)
* The number of pass channels wasn't taken properly into account when applying curves.
2010-10-19 11:51:31 +00:00
Campbell Barton
20c920e954 rename anim.c -> anim_movie.c since we have an anim.c in blenkernel too, it confused debuggers in some cases. 2010-10-19 11:39:37 +00:00
Campbell Barton
03d4121a55 Cancelling rotation on axis/angle object rotation didnt restore the original rotation.
also commented drotAxis/Angle since its not used yet.
2010-10-19 11:15:08 +00:00
Campbell Barton
5738f3b0b4 bugfix [#24322] Rotating objects with Axis+Angle mode fails. 2010-10-19 10:32:02 +00:00
Janne Karhu
ff5cbabffd Fix for [#24313] Displacement modifier is not respecting animated texture channels. 2010-10-19 10:26:53 +00:00
Janne Karhu
bb92265995 Fix for [#24319] Removing a cloth or softbody simulation in paticle mode problem 2010-10-19 10:17:19 +00:00
Campbell Barton
f979bca911 fix for exceptions in recent commit. 2010-10-19 09:50:43 +00:00
Nathan Letwory
d7b40531cd Fix [#20277] Bug with Continuous Grab on Windows
Reported by Alex Glawion

When we have a maximized window we need to take into account
that there are no borders.
2010-10-19 09:38:56 +00:00
Janne Karhu
a781157047 Fix for bugs [#24316] Changing particles path step in particle mode makes lines invisible and [#24318] Particle lines disappear if view particles are enabled. 2010-10-19 09:28:38 +00:00
Campbell Barton
53c1d1a18a patch [#24320] Fix for [#24311] Copy and Paste
from Alexander Kuznetsov (alexk)

   This check was dubious to begin with, if it causes more problems it should be removed.
2010-10-19 08:35:30 +00:00