Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2009-07-082.5Ton Roosendaal
Brought back the basics for transform manipulators. Martin will hook it all up to new transform system. Some notes: - Still uses G.moving - BIF_do_manipulator() is called as a View3D Operator I've tested selecting handles, added a print to confirm - BIF_GetTransInfo() returns a dummy struct now, just to get it running. - Marked some other issues with XXX
2009-07-08fix for loading YoFrankie levels in blender 2.5. Multires pointer was ↵Campbell Barton
corrupt on linked meshes. Note that the files didnt use multires so something odd is going on, but for now this stops the crash.
2009-07-082.5Ton Roosendaal
Copied some Python compat stuff to get py 2.3 running... just googled for it on python.org mailing list.
2009-07-08This fixes some NULL checks.Peter Schlaile
* base was referenced before NULL check * ob wasn't checked for NULL Still broken: Add Mesh doesn't seem to work in Object Mode. But now it doesn't crash anymore...
2009-07-08* workaround for PySys_SetArgv() in python3 needing wchar_tCampbell Barton
* PyRNA - id_struct.keyframe_insert("path", index, frame)
2009-07-072.5Ton Roosendaal
- Scrollers now only disappear for regions with a fixed total view, like lists, buttons, channels. More or less infinite views keep scrollers to indicate that you can still pan or zoom further. - Nodes: put back SHIFT+D "Add duplicate" (Also fixed duplicate objects menu name... it should be a bit more descriptive)
2009-07-072.5 filebrowser: previous/next + bugfix + elubie's changes and cleanupDalai Felinto
* Previous/Next Folder browser * bugfix: "open most recently opened directory". * Previous and Next functionalities: - use BACKSPACE to navigate to previous folders - use SHIFT+BACKSPACE to navigate forward - once you change the folder by other ways the forward folder list is cleared * bug fix: the sfile->params->dir set through ED_fileselect_set_params wasn't correct. According to the code taking the settings from the existing (previous) filebrowser is a temp solution. In that case this is a fix for a temp solution :) (changes in: wm_event_system.c, filesel.c and ED_fileselect.h) ** Andrea(elubie): we can get away of the folderlist_clear_next test if we manually pass a boolean to file_change_dir (e.g. file_change_dir(sfile, true)). I tried not to mess up with your changes here. It's slightly slower (and maybe hacky) but its's more conservative IMHO. (my first commit to 2.5 ... that was a good reason to put my paper on hold :p)
2009-07-062.5 Andrea Weikert
* fix for RNA generation dependency in MSVC projectfiles * added missing include
2009-07-062.5 filebrowserAndrea Weikert
* bringing back file numbering operator (PADPLUSKEY, PADMINUS) * Note: discovered conflicting key with View2D zooming that causes it to not work in panel area.
2009-07-05Added a particle instance modifier option to use particle size.Janne Karhu
2009-07-04Rendering animations with particle trails cached.Janne Karhu
2009-07-04A bunch of fun stuff now possible because of new pointcache code:Janne Karhu
* Baked normal particles can now use the "Path" visualization. * Path "max length" & "abs length" are now history: - New option to set path start & end times + random variation to length. - Much more flexible (and calculated better) than previous options. - This works with parents, children, hair & normal particles unlike old length option. - Only known issue for now is that children from faces don't get calculated correctly when using path start time. * New option "trails" for "halo", "line" and "billboard" visualizations: - Draws user controllable number of particle instances along particles path backwards from current position. - Works with children too for cool/weird visualizations that weren't possible before. * Normal particle children's velocities are now approximated better when needed so that "line" visualization trails will look nice. * New particle instance modifier options: - "path"-option works better and has controllable (max)position along path (with random variation possible). - "keep shape"-option for hair, keyed, or baked particles allows to place the instances to a single point (with random variation possible) along particle path. - "axis" option to make rotation handling better (still not perfect, but will have to do for now). Some fixes & cleanup done along the way: * Random path length didn't work for non-child particles. * Cached & unborn particles weren't reset to emit locations. * Particle numbers weren't drawn in the correct place. * Setting proper render & draw visualizations was lost somewhere when initializing new particle settings. * Changing child mode wasn't working correctly. * Some cleanup & modularization of particle child effector code and particle drawing & rendering code. * Object & group visualizations didn't work. * Child simplification didn't work.
2009-07-032.5:Brecht Van Lommel
* Fix crash in python with enum properties, and don't throw error if no matching identifier is found. This shouldn't happen, but it should break a python script either, which is not at fault. * Fix a wrong variable initialization in fluidsim.
2009-07-032.5/Multires:Nicholas Bishop
Missed this somehow when merging the multires branch? Have to make sure that multires displacements are up-to-date before doing a modifier apply.
2009-07-032.5/Sculpt:Nicholas Bishop
Bugfix, mesh face normals not getting updated because a list was freed in the wrong place.
2009-07-032.5Brecht Van Lommel
* Lattices: properties editable, editmode operators, menus working again. As a bonus you can now edit u/v/w in editmode. * Shape Keys: some code cleanup, and added more buttons. The value/min/max buttons don't work correct yet though. * Fix issue with uv textures, vertex colors not being visible outside editmode, and a few other issue. Mesh.edit_mesh is now NULL when not in editmode.
2009-07-032.5Ton Roosendaal
Windows #ifdef code missed semicolon.
2009-07-032.5Ton Roosendaal
More scroller work: - Added subtle arrow widgets to denote a scroller can zoom the view. - Made zoom symmetric (old convention to only zoom "one side" just worked badly)
2009-07-03fix for own missing var in recent commit.Campbell Barton
2009-07-032.5 - Additional warning fixJoshua Leung
2009-07-032.5 - Quick compiling fix for Ton's commit Joshua Leung
Patch (http://www.pasteall.org/6436/diff) by skejoe. Thanks.
2009-07-032.5Ton Roosendaal
Upgrading text editor to draw new scrollbar too.
2009-07-03set the PYTHONPATH to BLI_gethome_folder("python") if it exists.Campbell Barton
This lets us distribute blender with our own python module directory (next to ui and io), and avoids the need for a shell script to start blender.
2009-07-03cmake support for building without fluidsimCampbell Barton
2009-07-022.5: Physics ButtonsBrecht Van Lommel
All kinds of changes to get it ready for UI layouts. This means RNA and operators should be working correct, but most buttons are still not actually there yet. * Added near empty soft body, fluid, field and collision panels, tweaks to cloth panels. * Fluid bake works, but without escape or showing any progress. * Fluid/Softbody/Cloth/Collision can now be both added as modifiers or in the physics panels. * Missing: fields & soft body for particles. * Missing: proper updating softbodies, guess this code still needs updates after pointcache refactor?
2009-07-022.5Ton Roosendaal
Cleanup of scroller drawing in 2D windows. Before: http://download.blender.org/institute/rt11.jpg After: http://download.blender.org/institute/rt12.jpg Will add 'zoom' widget circles later, as mockupped here: http://www.reynish.com/files/blender25/fcurve_scrollbar.png Also note the scale values are inside scroller; drawing it on top conflicts with current frame item and markers. Currently scroller disappear entirely when view is total. For Joshua: To make sliders behave nicely, the boundbox (v2d->tot) has to be refreshed on each change. I've added it in graph drawing now, but it could be notifier based I guess... not sure what the correct anim api call would be. Can discuss tomorrow! On todo: Layout config hints so people can make scroller positions swap.
2009-07-02out own Py_GetPath() function to replace pythons, so we can bundle python ↵Campbell Barton
modules with blender, #if 0'd for now but having it is useful for testing. This works by copying /usr/lib/python3.1 to a dir called "python", next to blenders "ui" and "io" dirs.
2009-07-022.5Ton Roosendaal
More toolbar functionality for workflow review. - Split the region in two parts, bottom has the Tool Properties, the top part shows 2 panels, one for python defined tools, other for a "tool shelf" which (later) will get saved in files. - Added a full context driven framework for this toolbar, showing the tools depending on 3D window 'mode'. Both python defined tools as the shelf respect this. So - for example - you will see different tools in editmode mesh, as in vertex paint mode, etc. - First template for the python tools will be committed after this commit; it has placeholder tools to just show/test functioning. NOTE: if you had saved a layout that shows tools region, open/close it once to get the new region created for properties. TODO: - Moving paint properties to tool settings - Test a layout with horizontal toolbar (without properties) - Bring back floating panels, and put tool-properties here. (as option)
2009-07-022.5: Lists for vertex groups, shape keys, uvs, vertex colors.Brecht Van Lommel
RNA * Added the relevant active_*_index properties, with proper get/set/range, updates and notifiers. * Context.tool_settings. * ToolSettings.vertex_group_weight. Operators * MESH_OT_uv_texture_add/remove * MESH_OT_vertex_color_add/remove * MESH_OT_sticky_add/remove * OBJECT_OT_vertex_group_add/remove/assign/remove_from/ select/deselect/copy/copy_to_linked * OBJECT_OT_shape_key_add/remove UI * Some updates and cleanups in list template code. Known issue: when going in & out of editmode, uv textures and vertex colors dissappear. I thought me->edit_mesh would be NULL when not in edit mode but it is not?
2009-07-022.5: Fix a case of using freed memory in event handling.Brecht Van Lommel
2009-07-02needed for building with py2Campbell Barton
2009-07-01Added support for collection parameters also for RNA_function_call_direct ↵Elia Sarti
family of functions. The syntax for passing collection parameters is similar to passing pointers where you pass first the RNA type and then the ListBase representing the collection. The format specifier is "C" instead of "O", e.g. RNA_function_call_direct_lookup(C, reports, ptr, "do_something", "sC", "some string value", &RNA_SomeItemType, listbase); Note that from python you could in theory pass collections of items each of a different type while using this API you can't. I don't think this should be a problem as RNA supports collections this way anyway (i.e. where items are all of the same type or inherit from the same base type). Also a small fix for pointer parameters.
2009-07-01slice support working in py3 for Vector and Matrix types.Campbell Barton
Added slice to PyRNA collections and arrays (py3 only). eg. some_verts = mesh.verts[0:10] some_rna_array[4:-1] = [0,1,2,3] Collections dont support assignment, when assigning slices, resizing the array isnt support like with python lists.
2009-07-01RNABrecht Van Lommel
* Mesh.add_geometry, Mesh.update and make indices editable. This is without checking if they are valid still, no time now to implement this. * Also fix warnings in rna_ui.c, and a bug in CDDM_calc_edges. Example code: co = [0.0, 0.0, 0.0] + [1.0, 0.0, 0.0] + [0.0, 1.0, 0.0] + [1.0, 1.0, 0.0] faces = [0, 1, 2, 0] + [1, 3, 2, 0] mesh.add_geometry(4, 0, 2) mesh.verts.foreach_set("co", co) mesh.faces.foreach_set("verts", faces) mesh.update()
2009-07-012.5/Sculpt:Nicholas Bishop
== Re-added smooth stroke == UI: toggle is just in the sculpt menu for now. Also changes the sculpt paint cursor slightly, draws a line between previous and current locations. It's a different implementation than in 2.4, works like this: The stroke interpolates between the last mouse location and the current location, weighted towards the previous location. If the stroke gets within a certain radius of the current mouse location, the stroke stops. This radius allows for sharp turns in the stroke. Todo: there are two hard-coded parameters that should become user settable, that's the weighting between previous and current locations, and most important, the no-update radius. Note also that this option was added as a per-brush flag, worth discussing whether that's the correct place, or whether it should be a sculpt setting like symmetry? == Improved stroke spacing == The previous implementation of stroke spacing simply guaranteed that stroke dots would not occur any closer than the space setting. It now forces stroke dots to always be the specified distance apart. Todo: Performance gets pretty awful with a small spacing setting, this needs optimization.
2009-07-01disabling foreach_get/set for python2.x, since it uses new buffer api.Campbell Barton
2009-07-012.5 filebrowserAndrea Weikert
* show only name of the last directory for the bookmark * small fix of projectfile: header BLI_fileops.h was moved Note: full path should appear in tool tip later, also for renaming bookmarks later on.
2009-07-01Reverting changes made for laptop/two button mice - will make the changes ↵Tom Musgrove
available as a patch.
2009-06-30second part of python2.6 upgrade in cmake, now it will copy the dlls tooShaul Kedem
2009-06-302.5Brecht Van Lommel
Image Window * Unpack operator now works. * Some small layout code tweaks. Info Window Header * Moved to python UI code. * template_running_jobs, template_operator_search added. * Ported external data operators: pack/unpack all, make paths relative/absolute, find/report missing files. Also * Report RPT_INFO too, not only warnings and errors. * Run UI handle functions after RNA and Operators. * Rename particle system add/remove operators, to not include "slot", that's only there for materials because that's what they are called now in RNA.
2009-06-30RNABrecht Van Lommel
* Add Image.dirty boolean. * Added Window struct, with editable Window.screen. * Make Screen.scene editable.
2009-06-302.5 filebrowser Andrea Weikert
* Hide dot operator (HKEY) for theeth
2009-06-30python access to RNA arrays.Campbell Barton
coords = array.array('f', [0.0]) * len(me.verts) * 3 m.verts.foreach_get('co', coords) the reverse works with set also. currently works for python buffers or sequences (slower) Quick speed test with 1,179,654 verts. *foreach_get* list 0.377 array 0.032 py 10.29 *foreach_set* list 0.184 array 0.028 py 9.79 where python was done like this... ---- i= 0 for v in m.verts: co = v.co l[i] = co[0]; l[i+1] = co[0]; l[i+2] = co[0] i+=3 ---- some of the error checking here needs to be cleaned up to account for different invalid bad inputs.
2009-06-302.5 file browserAndrea Weikert
* adding GPL copyright header.
2009-06-30Python APICampbell Barton
Mathutils support for subclassing Vector, Quat, Euler and Matrix types. Removed C docstrings, prefer to make sure our epydocs are well maintained rather then duplicate, vague doc strings. Will convert scripts to detect missing docs from the BGE.
2009-06-302.5 file browserAndrea Weikert
* remove '.' and '..' from file browser list. sigh! * removed delete buttons from automatically added bookmarks (Desktop and Documents) Note: please check on non-Windows platforms
2009-06-302.5 file browser Andrea Weikert
* bookmark operators: add and delete bookmark * first start at menus in file browser: Directory and Bookmarks * Adding a bookmark via menu or via CTRL+B * Remove a bookmark with the X button next to it.
2009-06-30This commit adds Alt-LMB as an alternative to MMB, and CTRL-ALT-LMB as an ↵Tom Musgrove
alternative to CTRL-MMB so that laptop users can use 2.5
2009-06-302.5 filebrowser Andrea Weikert
* start of filebrowser RNA * system files, bookmarks, etc. now nicely inside panels to allow collapsing etc. * filebrowser header now defined in space_filebrowser.py TODO: * button type for bookmarks etc. not final yet, at least should get centered still. Suggestions welcome here.
2009-06-292.5: fix for compile error after recent search menu commit.Brecht Van Lommel