Commit Graph

47594 Commits

Author SHA1 Message Date
Campbell Barton
a87c5eb52c use color conversions functions in more places.
also add rgba_float_to_uchar, rgba_uchar_to_float
2012-01-19 10:04:51 +00:00
Daniel Genrich
47514a0d71 Baked edit: Make particle edit mode more usable for Softbodies and Cloth (jahka gave "OK") 2012-01-19 09:58:25 +00:00
Campbell Barton
879c13bbfc rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy). 2012-01-19 09:09:00 +00:00
Campbell Barton
4786541285 add utility functions linearrgb_to_srgb_uchar4,
linearrgb_to_srgb_uchar3, was being done inline.
2012-01-19 08:22:23 +00:00
Nicholas Bishop
65fca39f77 Fix for building in release mode with scons.
Change given thumbs up from JesterKing.
2012-01-19 07:12:30 +00:00
Nicholas Bishop
a2f1cb40b0 Remove a couple more unneeded variables from paint cursor drawing. 2012-01-19 04:13:58 +00:00
Nicholas Bishop
6947db25a8 Fix a minor RNA warning.
function warning.
2012-01-19 04:04:05 +00:00
Nicholas Bishop
6afac2d345 Couple minor fixes for DM_debug_print().
Fix a gcc warning by not using the DM_debug_info string as the format
string, also free the string after printing.
2012-01-19 04:00:27 +00:00
Nicholas Bishop
d526fc3e20 Remove some unused alpha code in paint_cursor. 2012-01-19 04:00:03 +00:00
Nicholas Bishop
2953542c6e Remove stroke parameter from PaintStroke's StrokeGetLocation callback.
Only affected sculpt.
2012-01-19 03:13:01 +00:00
Nicholas Bishop
abf7b4d84a Move paint's WM paint cursor code into a new file.
The paint cursor code is fairly muddled still and needs futher cleanup
(commented in the new file.) Over half the paint_stroke code was just
called from the cursor draw function.

There should be no functional changes from this.
2012-01-19 02:06:09 +00:00
Campbell Barton
b748d4f0cf debug function DM_debug_info / DM_debug_print, with access from python
through Object.dm_info('SOURCE/DEFORM/FINAL')

this is to help tracking down issues with modifiers where loosing data
layers between modifiers can cause bugs, also to helo with comparing
bmesh/trunk's modifier stack.
2012-01-19 00:18:25 +00:00
Dalai Felinto
c69abe0965 patch [#29679] Expose connected logic bricks from python
it exposes sensor.controllers and controller.actuators
this is how the data is exposed in blender.

to have controller.sensors or actuator.controllers is not that straightforward
2012-01-18 22:42:57 +00:00
Brecht Van Lommel
7162ca5be7 Fix #29922: NaN pixels due to bump map in degenerate case. 2012-01-18 22:36:19 +00:00
Brecht Van Lommel
42fcd2919a Code cleanup: remove some unused code. 2012-01-18 22:36:16 +00:00
Tamito Kajiyama
2453b16717 Fix for a crash with FSAA enabled and Freestyle disabled.
Problem report by Victor / tokiop, many thanks!
2012-01-18 21:38:33 +00:00
Campbell Barton
831b27791d patch [#29924] Border select tool implementation for the outliner
from Perry Parks (scuey), with edits.

- select row rather than icons.
- adjust outliner selection rather than object selection.
2012-01-18 21:12:51 +00:00
Campbell Barton
57ad3b85d8 fix [#27589] Random crash with python UI
This script was defining an operator within the panels draw function, while its possible to support this its really asking for trouble.

the fix is to raise an error when this happens.

also fix crash passing non classes to register_class/unregister_class
2012-01-18 19:50:44 +00:00
Sergey Sharybin
de8612ec62 Merging r43130 through r43500 from trunk into soc-2011-tomato 2012-01-18 17:25:05 +00:00
Sergey Sharybin
16ffa8e8f4 Curve points of tracking curves now can be grabbed to smooth spikes
Curve points of tracks curves now can be selected for X and Y channels
separately and can be moved along Y axis of curve viewer, points currently
can't change frame they belong to. This allows to smooth spikes caused by
unwanted marker jump.

Also fixed some mistakes in cancel transform in cases when locked tracks
were being trying to be moved; fixed incorrect calculation of marker speed
for curve drawing.
2012-01-18 16:45:02 +00:00
Campbell Barton
787ea5feb4 replace CDDM_calc_normals_mapping with CDDM_calc_normals(), this version of the function wont create tessfaces (and should speedup the modifier stack in some cases). 2012-01-18 15:47:56 +00:00
Campbell Barton
5eb569b69a dissable editmode tessface creation in 'get_dm' looked over uses and all that use editmode data are deform modifiers. 2012-01-18 15:33:51 +00:00
Campbell Barton
ad3e9900d6 call CDDM_from_BMEditMesh without creating tessface data for modifiers.
- in the case of deform modifiers this is very safe (assuming the mods themselves dont need tessface data), since the DM is freed right after, so this is an easy speedup.

- in the case of bevel and split edge modifiers this should still work out fine since mods that need tessface data will generate it.
2012-01-18 15:29:25 +00:00
Campbell Barton
9d782c8a1a argument for CDDM_from_BMEditMesh() so creating tessface data is optional, no functional changes since all callers use this so far. 2012-01-18 15:09:27 +00:00
Campbell Barton
939c4171c4 fix for editmode bmesh bug - found by testing script.
incorrect flag handling in CDDM_from_BMEditMesh() broke editmode deform verts (they would never be copied), issue was exposed when re-aligning layer values with trunk.
2012-01-18 14:52:47 +00:00
Campbell Barton
fb07ed7cfe fixed [#29907] Uncoherent behaviour of Delete Edge Loop 2012-01-18 12:31:41 +00:00
Sergey Sharybin
6d0f27b727 Fix #29918: Set Scale does not work the second time
Issue was caused by recently added operator presets stuff.
2012-01-18 11:41:35 +00:00
Campbell Barton
9ba8f57d58 edit to r43487
- make red outline more obvious (was hard to see when the camera was selected)
- remove text, red-alert text IMHO should only be used when something is wrong (example - its used when FPS cant keep up), but this is just information.
  realize out UI isnt dealing well with added view3d options but dont think its good to solve by displaying options as text overlay.
  red outline for the camera is just a hint which users notice when enabling the camera, think its acceptable.
2012-01-18 11:10:02 +00:00
Michael Fox
dcceda33a6 small usability edit, now there is some feedback on when the camera is locked to view.
A warnign will now appear in the top left corner and the camera outline becomes red, this warning only appears in camera view
2012-01-18 10:41:38 +00:00
Campbell Barton
a58ee6a6d8 fix errors in bmesh vertex paint
- was swapping matrix incorrectly, would fail when the object had any transform
- wasn't calling mesh_update_customdata_pointers() when adding MCol's in some cases
- was calling do_shared_vertexcol() twice when it didnt need to (blur painting only)
2012-01-18 08:43:27 +00:00
Campbell Barton
b281b5278f svn merge ^/trunk/blender -r43472:43482 2012-01-18 07:04:17 +00:00
Antony Riakiotakis
b4df2658de remove ARB_texture_gather from bicubic bump map dependencies. It will be needed when/if monochrome images are supported 2012-01-18 00:03:09 +00:00
Campbell Barton
0f28c1c27a svn merge ^/trunk/blender -r43461:43472 2012-01-17 21:08:25 +00:00
Sv. Lockal
cd476ee531 fix [#29914] paste text into blender causes crash 2012-01-17 19:03:18 +00:00
Campbell Barton
9be40c026d missing header in previous commit 2012-01-17 18:11:17 +00:00
Campbell Barton
2019f636b0 misc small changes and bmesh support for testing script 2012-01-17 18:01:16 +00:00
Sergey Sharybin
c64ab6c2bf Whitespace tabs vs. spaces consistency changes 2012-01-17 17:26:58 +00:00
Campbell Barton
ebfafc77eb fix for error in merge 43462 2012-01-17 17:14:23 +00:00
Campbell Barton
47b9f5d8f8 svn merge ^/trunk/blender -r43443:43461 2012-01-17 17:08:32 +00:00
Antony Riakiotakis
a8081c1d2b Uv Tools branch GSOC 2011
=========================
Documentation: http://wiki.blender.org/index.php/User:Psy-Fi/UV_Tools

Major features include:

*16 bit image support in viewport
*Subsurf aware unwrapping
*Smart Stitch(snap/rotate islands, preview, middlepoint/endpoint stitching)
*Seams from islands tool (marks seams and sharp, depending on settings)
*Uv Sculpting(Grab/Pinch/Rotate)

All tools are complete apart from stitching that is considered stable but with an extra edge mode under development(will be in soc-2011-onion-uv-tools).
2012-01-17 16:31:13 +00:00
Sergey Sharybin
fcc54520d1 Disable "Ask for each file" menu option for files unpack. It was never implemented in 2.5x 2012-01-17 16:22:22 +00:00
Bastien Montagne
b1e89faa6b Poor menu labels were not translated! 2012-01-17 16:13:39 +00:00
Brecht Van Lommel
e5d4ecd180 Fix #29905: extend transform a sequencer meta strip did not update the position
and length of the meta strip properly, only its contents. Also overlap check was
done too soon giving false positives, should be after meta strip update.
2012-01-17 16:06:24 +00:00
Brecht Van Lommel
7af10e9812 Fix #29762: columns in long enum property menu's were in the wrong order. 2012-01-17 16:06:16 +00:00
Campbell Barton
bda8c6528e remove BKE_array_mallocn.h, replace use with BLI_array.h, also removed
ifdef'd code which has since been moved into another file.
2012-01-17 16:03:49 +00:00
Campbell Barton
af6f753400 fix for segfault with bpy compiled as python module (dont register atexit)
update `make lite` built target to remove some newly added features.
2012-01-17 15:19:11 +00:00
Campbell Barton
b805334cc2 fix [#29913] Bezier edit mode crashes on undo. 2012-01-17 14:21:27 +00:00
Bastien Montagne
25e3b647b1 New pchan to pose matrices computes. Fixes [#27898] Bone snap to cursor fails and [#29461] Selection-to-Cursor works strange with bones with TrackTo constraint. Also fixes some inconsistant behavior of no Inherit Rotation/Scale options.
WARNING: This commits modifies how translated unconnected child bones with *no Inherit Rotation option* are positionned. This means that if you open a posed/animated armature using such (corner-case) setup, you'll have to adjust manually the locations of such bones: now, disabling Inherit Rotation/Scale will no more move the bone, only affecting its rotation/scale.

Many thanks to Bassam Kurdali (slikdigit) for his advices and tests of the patch!

-----

Dev notes : the pchan_to_pose_mat() func was added to BKE_armature.h, which computes two matrices to get the pose transformations (pchan) of the bone directly in pose (i.e. armature object) space. The first matrix is the rotation/scaling parts, the second one is for location.

That new function is used by (hence deduplicating and simplifying their code):
* The pose evaluation code (where_is_pose_bone()).
* The interactive transformation code (add_pose_transdata(), in transform_conversion.c).
* The snap to cursor/grid code (through armature_loc_pose_to_bone()/armature_mat_pose_to_bone()).
2012-01-17 13:30:20 +00:00
Campbell Barton
ddefb8a7d7 another fix for bmesh/solidify - was using incorrect poly length when finding the customdata to copy. 2012-01-17 13:26:59 +00:00
Campbell Barton
7e15c6ef97 remove some complexity in solidify code rim face creation.
was doing a loop lookup when the index was already available.
2012-01-17 13:18:23 +00:00