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
AgeCommit message (Collapse)Author
2010-08-08remove unused includes from editors/space_*Campbell Barton
2010-08-07bugfix [#23211] "with" keyword in text editor not highlighted [Patch attatchedCampbell Barton
by Justin Dailey (dail) with minor edit
2010-08-06Fix #23196: running python scripts didn't do an undo push. Now it doesBrecht Van Lommel
means you can easily undo what the script did, and keeps the undo stack up to date. Maybe sometimes it's not necessary, but I think it's reasonable to do this always.
2010-08-05patch [#23185] Mark All in Text Editor always reports "Text not found" when ↵Campbell Barton
wrap is off
2010-08-04include cleanup, no functional changesCampbell Barton
- removed DNA_brush_types.h from DNA_scene_types.h (and some other similar cases) - removed DNA_wave_types.h (never used) - removed Main.wave
2010-08-04bugfix [#23174] Text Editor: View Top of File and View Bottom of File not ↵Campbell Barton
working [Patch to fix attached] also moved these into the View menu (removed Edit->View)
2010-08-02patch [#23054] Fix for bug #22725 "text editor doent scroll with cursor"Campbell Barton
fixes [#22725] text editor doent scroll with cursor from Justin Dailey (dail)
2010-08-012.5: code changes to reduce the usage of G.main and pass it alongBrecht Van Lommel
or get it from the context instead.
2010-07-30patch [#23088] 2.5 Text Editor: Preserve indentation with spacesCampbell Barton
from Fabian Fricke (frigi)
2010-07-29bugfix [#23062] Resolve conflict button in text editor dissappers in Blener ↵Campbell Barton
2.5 beta release also uncommented console some code for testing by mistake & remove warning.
2010-07-27bugfix [#23052] New Bracket Highlighting Patch Causes Seg Fault [Patch to ↵Campbell Barton
fix attached] by Justin Dailey (dail) for bracket highlight patch from yesterday.
2010-07-26[#23032] Bracket Highlighting in Text Space Fix [Patch to fix attached]Campbell Barton
from Justin Dailey (dail) from the tracker --- snip --- In the text editor doing something like this: print(":(") When it goes to match the closing bracket, it will highlight the one in the string, not the first one. Also doing: array["[index"] will cause it to match the second [ with the closing one. I have attached a patch to fix this issue. (See attached image to see correct highlighting) It also works with triple quotes strings(ie """...""" or '''...''') *Note* However, originally bracket highlighting always on even if syntax highlighting is off. The patch makes it so it only highlights brackets when syntax highlighting is on (this is a side effect of doing the code this way, if it was done any other way ALOT of code would have been needed to check for strings,triple quoted strings, escaped quotes, and comments forwards and backwards). When highlighting matching brackets, the code checks the line's format string to see if the char is in a string or comment to skip it. If syntax highlighting is turned off, the format string is null and cannot be used,thus no bracket highlighting.
2010-07-20- correct some spelling errors.Campbell Barton
- remove FreeCamera struct (wasnt used) - remove world color alpha values (not used anywhre).
2010-07-01adding image strips wasnt working, use the 'directory' component of the file ↵Campbell Barton
selector rather then the full 'filepath' to fix this. added flags for filename/filepath/directory args to WM_operator_properties_filesel().
2010-06-18Added sintax coloring for NoneDaniel Salazar
2010-06-14naming changesCampbell Barton
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-06-11patch [#22570] Text editor syntax coloring updateCampbell Barton
from Jacob F (raccoon) This does two things to the text editor: 1) Adds coloring (same color as numbers) for True and False. 2) Fixes [#22551] Syntax coloring offset does not update when using real tabs and changing tab width
2010-06-09- added a flag argument to WM_operator_properties_filesel() currently only ↵Campbell Barton
used for relative path option. - added relative option to saving external multires data - renamed multires external functiosn to have save / pack as suffix. - added TODO's for file select operators that should support relative paths but dont. - also disable openmp on linux cross compile, mingw currently isnt linking -lgomp
2010-06-06finish cleanup to cmake editors, also removed some stuff from scons thats ↵Campbell Barton
not needed.
2010-06-05remove cruft from cmake files, more to goCampbell Barton
2010-06-04have cmake build editors as different libs like scons and nan-makefilesCampbell Barton
2010-05-24Fix [#22382] Text Editor properties pannel scales, not scrolls, with MMWMatt Ebb
2010-05-12Add a little RMB context menu to text editorMatt Ebb
2010-05-10Enable external drag/drops into text editorMatt Ebb
2010-05-09***Drag and drop fun!***William Reynish
Added ability to drag images and movies directly onto objects to assign them as textures. You can drag them from the file browser, directly from the OS or even from other apps. Here's a video to demonstrate: http://www.youtube.com/watch?v=fGe2U8F_JvE Ton wanted to show me how to add it, but he ended up doing almost all of the coding himself ;) Ton/Matt: Dropping a text file in the Text Editor fails for some reason. It aught to work - probably a keymap conflict of some sorts?
2010-04-26Add operator undo flags to text datablock related operatorsMatt Ebb
2010-04-22BugFix:Diego Borghetti
[#20854] PROPERTIES STAMP: Rendering stamp flickers in output renders Blenfont was not thread safe, that is why one thread can change the font properties (size, dpi, color, etc) at the same time that the stamp draw on the image, and then the problem. To make blenfont thread safe I have to change two important things: 1) Every BLF_* function take one argument, the font id. 2) We have two new function to make font "thread safe": BLF_load_unique BLF_load_mem_unique This two function are for case like stamp, that need and own font that don't share the glyph cache, so can draw without problem in a different thread. Why the BLF_*_unique function ? Because blenfont keep only one copy of a font and keep a list of "glyph cache". Every glyph cache have size and dpi, so if two different thread access the same font at the same time, they can change value and finish with something like the stamp problem. Why don't remove the glyph cache ? Because if we do that, we finish with a font object for every size and dpi, and the stamp is really a special case that happen in the rendering process, so I really thing is better keep the glyph cache and make this two new function to handle this special case. (When I say "font object" I mean have the same freetype font multiple times just to have differents size and dpi) As Matt point we still can have one case that two thread access the BLF_*_unique function at the same time, but I am looking to fix this with some class of thread lock. For now I test and work fine, so if some one found problem, please let me know. Campbell I have to change the python api (python/generic/blf_api.c) to the new syntax, so maybe you can take a look at this.
2010-04-18various minor fixesCampbell Barton
- collada export would run MEM_freeN on an un-initialized pointer in some cases. - makesrna was missing a call to close a file. - text cursor update function was missing a NULL check for st->text. - possible (unlikely) un-initialized return value for bge python lamp.type, set error instead. - possible (unlikely) missing NULL terminator with strncpy for ffmpeg.
2010-04-06Fix [#21516] UI artifacts in array modifierMatt Ebb
Modify the glClearColor used to draw disabled buttons, when creating a ROUNDBOX ui element. Made a convenience function and rippled it though, too.
2010-03-31[#21851] Bugfix: [#21254] text editor jump to line crashCampbell Barton
by Ignacio Fernández (hellmoon666)
2010-03-30* Multiply for panorama camerasBrecht Van Lommel
* Some cases of struct name being set where it shouldnt have been. * Spelling: wich --> which * Copy and initialize uv modifier scale, remove unneeded enum. * Ability to pin any object into the context. * Update uv window while transforming (useful when used with UVProject modifier) * Patch by Wahooney, so new template's are internal text and dont get saved over by mistake. * Fix for https://bugzilla.redhat.com/show_bug.cgi?id=572186 Bug 572186 - [abrt] crash in blender-2.49b-5.fc12: Process /usr/bin/blender.bin was killed by signal 6 (SIGABRT). Original fix submitted by Jochen Schmitt. * [#21816] bpy.data.add_image has stopped working on Windows. moved to bpy.data.images.load(), missed this call. (commits 27726,27825,27828,27831,27832,27833,27834,27836,27837,27838,27839,27858 by Campbell from render25 branch)
2010-03-23rna/py-api fix.Brecht Van Lommel
C functions and python used different argument order, this relied on mapping non-keyword arguments to 'REQUIRED' arguments but meant that you could not have an optional, non-keyword argument. next commit will make order of arguments consistant (currently only changed order that rna wrapped). (commit 27674 by Campbell from render25 branch)
2010-03-23more lint includesCampbell Barton
Only source/blender/editors/ dir, should not give errors on different platforms Only removing: UI_*.h, ED_*.h, WM_*.h, DNA_*.h, IMB_*.h, RNA_*.h, PIL_*.h
2010-03-22spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)Campbell Barton
2010-03-21Fix syntax for ID keyword.Guillermo S. Romero
2010-03-09rename some functions to use easier to understand names.Campbell Barton
'BLI_makestringcode' --> 'BLI_path_rel' 'BLI_convertstringcwd' --> 'BLI_path_cwd' 'BLI_convertstringframe' --> 'BLI_path_frame' 'BLI_convertstringframe_range' --> 'BLI_path_frame_range' 'BLI_make_cwdpath' --> 'BLI_path_cwd'
2010-02-12correct fsf addressCampbell Barton
2010-02-11batch remove .'s used with RNA_def_struct_ui_textCampbell Barton
2010-02-09Bugfix #21041: pressing tab, adds spaces depending on the end of the lineJoshua Leung
The code used to calculate the number of spaces to insert for a tab (so that indention widths were aligned to multiples of the number of spaces to use) was incorrectly assuming that the line that this was to occur on was blank, using text->curl->len (i.e. the length of the current line). The code now uses the position of the cursor to determine how many spaces need to be added to it to move it to the next multiple of the tab width. --- Also, added numpad enter to text-editor keymap for creating new lines for more consistency with user expectations.
2010-02-07Fix #21008: text editor scrollbar overlapping text, code here was notBrecht Van Lommel
fully updated when the scrollbar was moved from left the right.
2010-02-01Renamed the FILE_OPEN option for the file browser to FILE_OPENFILE to ↵Joshua Leung
cleanup compiler warnings about redefined definitions (mingw)
2010-01-27[#20728] "Export UV Layout" overwrites existing files (without feedback)Matt Ebb
The 'save over' popup was only appearing based on a string comparison of the operator name ("Save"). Changed this to use a hidden operator property: "check_existing". Python operators must have this property for the file selector confirmation too. This property can also be set to false, to prevent checking for existing files, useful in the File->Save menu item to prevent the dangerously missable confirmation popup.
2010-01-26Drag and drop 2.5 integration! Finally, slashdot regulars can useTon Roosendaal
Blender too now! :) ** Drag works as follows: - drag-able items are defined by the standard interface ui toolkit - each button can get this feature, via uiButSetDragXXX(but, ...). There are calls to define drag-able images, ID blocks, RNA paths, file paths, and so on. By default you drag an icon, exceptionally an ImBuf - Drag items are registered centrally in the WM, it allows more drag items simultaneous too, but not implemented ** Drop works as follows: - On mouse release, and if drag items exist in the WM, it converts the mouse event to an EVT_DROP type. This event then gets the full drag info as customdata - drop regions are defined with WM_dropbox_add(), similar to keymaps you can make a "drop map" this way, which become 'drop map handlers' in the queues. - next to that the UI kit handles some common button types (like accepting ID or names) to be catching a drop event too. - Every "drop box" has two callbacks: - poll() = check if the event drag data is relevant for this box - copy() = fill in custom properties in the dropbox to initialize an operator - The dropbox handler then calls its standard Operator with its dropbox properties. ** Currently implemented Drag items: - ID icons in browse buttons - ID icons in context menu of properties region - ID icons in outliner and rna viewer - FileBrowser icons - FileBrowser preview images Drag-able icons are subtly visualized by making them brighter a bit on mouse-over. In case the icon is a button or UI element too (most cases), the drag-able feature will make the item react to mouse-release instead of mouse-press. Drop options: - UI buttons: ID and text buttons (paste name) - View3d: Object ID drop copies object - View3d: Material ID drop assigns to object under cursor - View3d: Image ID drop assigns to object UV texture under cursor - Sequencer: Path drop will add either Image or Movie strip - Image window: Path drop will open image ** Drag and drop Notes: - Dropping into another Blender window (from same application) works too. I've added code that passes on mousemoves and clicks to other windows, without activating them though. This does make using multi-window Blender a bit friendler. - Dropping a file path to an image, is not the same as dropping an Image ID... keep this in mind. Sequencer for example wants paths to be dropped, textures in 3d window wants an Image ID. - Although drop boxes could be defined via Python, I suggest they're part of the UI and editor design (= how we want an editor to work), and not default offered configurable like keymaps. - At the moment only one item can be dragged at a time. This is for several reasons.... For one, Blender doesn't have a well defined uniform way to define "what is selected" (files, outliner items, etc). Secondly there's potential conflicts on what todo when you drop mixed drag sets on spots. All undefined stuff... nice for later. - Example to bypass the above: a collection of images that form a strip, should be represented in filewindow as a single sequence anyway. This then will fit well and gets handled neatly by design. - Another option to check is to allow multiple options per drop... it could show the operator as a sort of menu, allowing arrow or scrollwheel to choose. For time being I'd prefer to try to design a singular drop though, just offer only one drop action per data type on given spots. - What does work already, but a tad slow, is to use a function that detects an object (type) under cursor, so a drag item's option can be further refined (like drop object on object = parent). (disabled) ** More notes - Added saving for Region layouts (like split points for toolbar) - Label buttons now handle mouse over - File list: added full path entry for drop feature. - Filesel bugfix: wm_operator_exec() got called there and fully handled, while WM event code tried same. Added new OPERATOR_HANDLED flag for this. Maybe python needs it too? - Cocoa: added window move event, so multi-win setups work OK (didnt save). - Interface_handlers.c: removed win->active - Severe area copy bug: area handlers were not set to NULL - Filesel bugfix: next/prev folder list was not copied on area copies ** Leftover todos - Cocoa windows seem to hang on cases still... needs check - Cocoa 'draw overlap' swap doesn't work - Cocoa window loses focus permanently on using Spotlight (for these reasons, makefile building has Carbon as default atm) - ListView templates in UI cannot become dragged yet, needs review... it consists of two overlapping UI elements, preventing handling icon clicks. - There's already Ghost library code to handle dropping from OS into Blender window. I've noticed this code is unfinished for Macs, but seems to be complete for Windows. Needs test... currently, an external drop event will print in console when succesfully delivered to Blender's WM.
2010-01-26Fix #19580: text editor - current line is dependent on theBrecht Van Lommel
text datablock, not the editor.
2010-01-17Test Editor fix: Ctrl+LEFT/RIGHT was set twice (one of them wrongly)Dalai Felinto
2010-01-11Multitouch trackpad 2 fingers gestures implementationDamien Plisson
- 2 fingers scroll (MOUSEPAN / GHOST_kTrackpadEventScroll event) pans/scrolls the view - 2 fingers pinch (MOUSEZOOM / GHOST_kTrackpadEventMagnify event) zooms the view And in 3D view: - alt + 2 fingers scroll rotates the view - 2 fingers rotation (MOUSEROTATE / GHOST_kTrackpadEventRotate) orbits the view. The implementation uses a new GHOST event type: GHOST_kEventTrackpad, that is then dispatched as Blender MOUSEPAN, MOUSEZOOM or MOUSEROTATE events. This is currently fully implemented for OSX (GHOST Cocoa fires the new events), with auto-detection of the source peripheral, so that a regular mouse still sends MOUSEWHEEL events.
2010-01-05Fix #20571: run script operator crashes in 3d view.Brecht Van Lommel
2010-01-03- WM_OT_context_cycle_int wasnt working (also wasnt used anywhere)Campbell Barton
- remove console zoom operator, use WM_OT_context_cycle_int instead. - use WM_OT_context_cycle_int for text editor zoom also (Ctrl +/- and Ctrl+MouseWheel)
2009-12-28Got rid of some dead codeMatt Ebb
2009-12-20Add missing names to SpaceTypesMartin Poirier