Commit Graph

38152 Commits

Author SHA1 Message Date
Brecht Van Lommel
68d9e73ecd Fix: forgot to commit these files as part of strand bugfix. 2012-05-04 12:46:51 +00:00
Jason Wilkins
a0ce240de9 Renamed "fake" OpenGL identifiers.
Any identifier that looks like an OpenGL identifier, but isn't, causes a false alarm by the glreport.py tool.  Most of these were in comments so I just rephrased the comments.  There were a couple of static functions/macros that were easy enough to rename.  Only the glTexco and glIndex fields of the DMVertexAttribs struct was public and had non-local uses.
2012-05-04 11:50:11 +00:00
Sergey Sharybin
df553582e9 Fix #31288: Blender crash when select a material
Quite the same issue as render crash on missed shader groups, needed a NULL-check
in node exec function as well.
2012-05-04 11:49:58 +00:00
Brecht Van Lommel
c01aa64247 Fix: issue in strand render + instancing bugfix, also optimized it a bit to avoid
unnecessary memory allocations.
2012-05-04 09:58:35 +00:00
Brecht Van Lommel
2823a9a809 Fix #31286: saving 16 bit BW tiff could crash due to invalid memory access. Also
found that 16 bit RGBA saving was not working, fixed as well.
2012-05-04 09:25:09 +00:00
Sergey Sharybin
549b3ccba1 Throw an error and prevent compilation if there're unknown structures detected by DNA 2012-05-04 08:18:47 +00:00
Brecht Van Lommel
a899ce19d0 Cycles: tweak ATI OpenGL/CUDA fix more with extra error check. 2012-05-04 08:00:58 +00:00
Brecht Van Lommel
621245c6cd Fix related to #31118: ensure tesselated faces are available when exporting
to fluid sim. Is not actually the cause of the bug.
2012-05-04 08:00:55 +00:00
Jason Wilkins
0fcb7d813e There is no GLenum called LIGHT_POSITION
There is an FAQ that mentions a mythical GL_LIGHT_POSITION, and lots of programmers speak of it, but this mythical creature does not exist!

The correct symbol is GL_POSITION
2012-05-04 07:23:50 +00:00
Nicholas Bishop
4ea8c9ab38 Small hull bmop fix, distance check from plane needs absolute value. 2012-05-04 03:25:46 +00:00
Sergey Sharybin
e3535e884a Style cleanup: spaces around operators 2012-05-03 23:47:39 +00:00
Sergey Sharybin
9a9924c79c Camera tracking: show disabled active track even if Show Disabled is switched off 2012-05-03 23:41:28 +00:00
Brecht Van Lommel
0fcf17fc72 Possible fix for #31054: cycles viewport rendering not working with CUDA for
computation and ATI card for OpenGL.
2012-05-03 23:39:42 +00:00
Sergey Sharybin
48ead27366 Camera tracking: switch dopesheet information to lazy calculation
All operators which changes tracking data now just tags dopsheet as outdated,
actual re-calculaiton of happens only when this information is actually needed
(like on dopesheet draw).

This makes things a bit faster when there's no dopesheet visible in current
screen and also makes it much easier to update dopesheet using dependency
graph.

Also renamed dopesheet_sort_order to dopesheet_sort_method in rna and internal
stuff which makes much more sense and also correlated with naming in
file browser.
2012-05-03 23:15:01 +00:00
Campbell Barton
5da2135eef code cleanup: double promotion & some style cleanup 2012-05-03 21:35:04 +00:00
Brecht Van Lommel
b075765edd Fix #31258: collada now selects newly added objects after import. 2012-05-03 21:32:49 +00:00
Campbell Barton
552a70f177 code cleanup:
- replace iterators with macros
- move vertexCos checks outside the for loops (use 2 for loops).
- style cleanup
2012-05-03 21:19:31 +00:00
Campbell Barton
ae585d5969 fix for last commit, (warning was without openmp only) 2012-05-03 20:26:05 +00:00
Brecht Van Lommel
d0017e1813 Fix strand render + instancing render bug, gave tile artifacts. 2012-05-03 20:06:25 +00:00
Campbell Barton
2a1ba8c85b style cleanup: formatting and some float/double promotion 2012-05-03 19:57:24 +00:00
Campbell Barton
dfb3e41cf9 code cleanup: minor changes to get trunk compiling with strict warnings. 2012-05-03 19:47:16 +00:00
Sergey Sharybin
b1006fb949 Clip editor: sort order for dopesheet channels
Supported sorting by name, longest tracked segment and total tracked frames.

Internally tracks are stored in Tracking datablock, but sort order is
a clip editor space property and sorting happens on clip editor draw.
If there's no dopesheet opened with different sort orders it's not
a problem due to re-sorting wouldn't happen.

Also fixed draw issue of tracked segments introduced in previous commit.
2012-05-03 19:28:41 +00:00
Sergey Sharybin
5821c2973e Camera tracking: pre-calculate tracked segments for dopesheet channels 2012-05-03 17:52:34 +00:00
Sergey Sharybin
96693d37e6 Camera tracking: clear clipboard path before copying tracks to it. 2012-05-03 17:02:33 +00:00
Sergey Sharybin
ca10d0d187 Camera tracking: apparently one of tracking presets was never merged from tomato 2012-05-03 17:00:08 +00:00
Brecht Van Lommel
4965f3d022 Fix #31234: vertex normals not update after knife cut. 2012-05-03 16:35:51 +00:00
Brecht Van Lommel
763dee2904 Fix #31275: mesh draw issues after adding hook to mesh in edit mode. 2012-05-03 16:24:27 +00:00
Brecht Van Lommel
885c4a6e78 Fix #31273: videotexture ImageRender not working in blenderplayer. 2012-05-03 14:59:42 +00:00
Brecht Van Lommel
13e97f86d0 Fix #31259: particle grid distribution not working. 2012-05-03 13:56:15 +00:00
Sergey Sharybin
d10da0fbd2 Fix #31272: Blender Crashes when press render
Issue was caused by missed libraries. Seems compositor nodes already does check
in such cases, added the same check to texture and shader nodes.
2012-05-03 12:55:18 +00:00
Sergey Sharybin
eec8de9469 Fix #31254: OpenGL-Rendering dark without Effect-Strip
Issue was caused by the fact, that sequencer is working in sRGB space, but
when there's only image input strips we need to make sure conversion from
byte to float buffer would keep float buffer in sRGB space and wouldn't
make it linear as it's supposed to be in other areas.
2012-05-03 11:54:12 +00:00
Antony Riakiotakis
3509daa1c1 Fix #31178, the cause is hidden and selected faces would return NULL as UVElements. To avoid checking the whole contingency of UV synch selection + face selection + face hidden, added a NULL check. 2012-05-03 10:56:35 +00:00
Sergey Sharybin
56d22457e3 Fix #31266: Track preview is shifted by half a pixel 2012-05-03 10:40:04 +00:00
Brecht Van Lommel
3ee4be913b Fix #31139: fractal mesh subdivide was only working along normal where previously
it would displace in all directions. Now there's an operator option to control this.
2012-05-03 10:14:08 +00:00
Brecht Van Lommel
949de4688d Fix #31257: tiff reader not reading 16 bit grayscale images correctly. 2012-05-03 09:51:12 +00:00
Brecht Van Lommel
dcdf768147 Fix #31108: entering local view with glsl shows objects black. Now keeps lamps
affecting the material even if they are not part of the local view.
2012-05-03 09:31:59 +00:00
Lukas Toenne
d3a5fd5508 Enum property items were missing a terminator item. 2012-05-03 06:57:30 +00:00
Bastien Montagne
aecddee333 Grr! Fix for own error in r46193. 2012-05-03 05:39:30 +00:00
Jason Wilkins
90b0be522c Patch [#30965] Cancel Sculpt Stroke w/ ESCAPE
If the RMB has not been released after starting a sculpt stroke, then hitting escape will cancel the stroke in progress and undo any changes to the mesh.

This is a slightly faster work-flow than using undo, is a feature available in other paint programs, and also puts in place the infrastructure to add other keys later that could tweak strokes in different ways.
2012-05-03 04:11:53 +00:00
Jason Wilkins
2a6217859e Patch [#30255] Center Last Stroke
Enables the NUMPERIOD view centering operator to work in sculpt mode.  Hitting NUMPERIOD while in sculpt mode will center the view on the end of the last sculpting stroke made by the user.

This is useful for quickly refocusing on the current work area without fussing with the view controls.

It does not zoom into the stroke (slide only).

It does nothing if there have been no strokes.
2012-05-03 03:51:30 +00:00
Jason Wilkins
af1720bc77 ED_object_exit_editmode needs ED_object.h 2012-05-03 01:07:16 +00:00
Brecht Van Lommel
bfcee9addb Fix #31256: collada export while in edit mode does not export edit mode changes,
now uses same call as render to flush mesh without leaving edit mode.
2012-05-02 23:48:16 +00:00
Brecht Van Lommel
959a717d91 Fix #31250, #31248: wrong vertex normals after transform apply, collada import,
sculpt shape key switch. All cases that called this function needed parameter
only_face_normals set to false, so changed it now.

Also fixed wrong user count for imported mesh from collada and simplified
previous fix for tesselated faces to polygons conversion.
2012-05-02 23:36:34 +00:00
Brecht Van Lommel
893cd1b4fd Fix #31253: collada export default file name now is no longer always
untitled.dae, but rather uses .blend file name like other exporters.

Patch by Gaia Clary.
2012-05-02 23:36:31 +00:00
Nicholas Bishop
6f0cb140b0 Initialize an input in bmo_hull. 2012-05-02 23:29:52 +00:00
Brecht Van Lommel
f87682f631 Fix #31247: cycles crash after recent bugfix. 2012-05-02 18:14:59 +00:00
Brecht Van Lommel
203a4d42ca Fix #31089: collada file crashing on importing file with unknown/unsupported animation data. 2012-05-02 18:11:09 +00:00
Sergey Sharybin
a1f4be4577 Style cleanup: spaces around operators 2012-05-02 17:37:39 +00:00
Sergey Sharybin
6f3400ca52 Clip editor: cleanup of View menu - do not show operators which doesn't make sense in dopesheet/curve view 2012-05-02 17:33:48 +00:00
Brecht Van Lommel
d64661b507 Cycles: add Ray Length output to Light Path node. This gives the distance travelled
by the last light ray. One use case for this might be to do absorption.

Patch #31232 by Agustin benavidez, see this blog post for details:
http://agus3d.blogspot.com.ar/2012/05/blender-cycles-ray-length-node-output.html
2012-05-02 17:03:46 +00:00